First push after merge, split and enhance both zOS and zputa

This commit is contained in:
Philip Smart
2020-04-25 22:48:39 +01:00
commit 25466f1db8
5072 changed files with 2191180 additions and 0 deletions

29
apps/tbasic/basic_utils.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef __UTILS_H_
#define __UTILS_H_
#include "mytypes.h"
void trim(char* s);
char* skipSpaces(char* s);
char* skipDigits(char* s);
char charInStr(char c, char* s);
char cmpNStrToStr(nstring* ns, char* s);
int decFromStr(char* s);
char isDigit(char c);
char isDigitBased(char c, char base);
char isAlpha(char c);
char isAlNum(char c);
char isSpace(char c);
char toUpper(char c);
char makeDigit(char c, char base);
numeric hashOfNStr(nstring* t);
void pause(numeric millis);
void outputChar(char c);
void outputStr(char* s);
void outputNStr(nstring* s);
void outputInt(long n);
void outputCr();
#endif