33 #define WEAK_ATR __attribute__((weak)) MEMSPACE int MATCH_LEN(char *str, char *pat)
Compare two strings limted to length of pattern.
MEMSPACE int MATCH(char *str, char *pat)
Compare two strings.
MEMSPACE size_t WEAK_ATR strlen(const char *str)
String Length.
MEMSPACE char * stralloc(char *str)
Allocate space for string.
MEMSPACE int WEAK_ATR islower(int c)
MEMSPACE int WEAK_ATR isupper(int c)
Is a character upper case.
MEMSPACE char * get_token(char *str, char *token, int max)
return next token
MEMSPACE int32_t get_value(char *str)
get a number
MEMSPACE int WEAK_ATR strcasecmp(const char *str, const char *pat)
Compare two strings without case.
MEMSPACE WEAK_ATR char * strncpy(char *dest, const char *src, size_t size)
copy a string of at most N characters
MEMSPACE int split_args(char *str, char *argv[], int max)
Split string into arguments stored in argv[] We split source string into arguments Warning: source st...
MEMSPACE char * nextspace(char *ptr)
Skip to first white space in a string - tabs and spaces.
MEMSPACE char * skipspaces(char *ptr)
Skip white space in a string - tabs and spaces.
MEMSPACE int token(char *str, char *pat)
Search for token in a string matching user pattern.
MEMSPACE int WEAK_ATR tolower(int c)
Convert character to lower case, only if it is upper case.
MEMSPACE WEAK_ATR char * strcat(char *dest, const char *src)
Append string.
MEMSPACE char * skipchars(char *str, char *pat)
Skip characters defined in user string.
MEMSPACE int WEAK_ATR strcmp(const char *str, const char *pat)
Compare two strings.
MEMSPACE void WEAK_ATR strupper(char *str)
UPPERCASE a string.
MEMSPACE void trim_tail(char *str)
Trim White space and control characters from end of string.
MEMSPACE WEAK_ATR char * strcpy(char *dest, const char *src)
copy a string
MEMSPACE WEAK_ATR char * strncat(char *dest, const char *src, size_t max)
Append string of at most N bytes from src.
MEMSPACE void * memchr(const void *str, int c, size_t size)
find a character in a string of maximum size
MEMSPACE void WEAK_ATR reverse(char *str)
Reverse a string in place Example: abcdef -> fedcba.
MEMSPACE int WEAK_ATR strncasecmp(const char *str, const char *pat, size_t len)
Compare two strings without case maximum len bytes in size.
MEMSPACE int WEAK_ATR toupper(int c)
Convert character to upper case, only if it is lower case.
MEMSPACE int MATCHI_LEN(char *str, char *pat)
Compare two strings without case limted to length of pattern.
MEMSPACE char * strnalloc(char *str, int len)
Allocate space for string with maximum size.
MEMSPACE int MATCHI(char *str, char *pat)
Compare two strings without case.
MEMSPACE int WEAK_ATR isdigit(int c)
test if a character is a digit
MEMSPACE void sep(void)
undo any existing macros
MEMSPACE int MATCHARGS(char *str, char *pat, int min, int argc)
Match two strings and compare argument index Display message if the number of arguments is too few...
MEMSPACE int WEAK_ATR strncmp(const char *str, const char *pat, size_t len)
Compare two strings maximum len bytes in size.