HP85 GPIB Disk Emulator
1.0
HP85GPIBDiskEmulator
|
Go to the documentation of this file.
24 #include "user_config.h"
42 if(c >=
'0' && c <=
'9')
59 if(c >=
'A' && c <=
'Z')
76 if(c >=
'a' && c <=
'z')
94 return(c -
'A' +
'a');
111 return(c -
'a' +
'A');
122 void *
memchr(
const void *str,
int c,
size_t size)
124 const uint8_t *ptr = str;
127 if (*ptr++ == (uint8_t) c)
128 return (
void *) (ptr - 1);
179 char *
strncpy(
char *dest,
const char *src,
size_t size)
199 char *
strcat(
char *dest,
const char *src)
215 char *
strncat(
char *dest,
const char *src,
size_t max)
240 for (i = 0; i < (len >> 1); i++)
242 temp = str[len - i - 1];
243 str[len - i - 1] = str[i];
286 if ( (ret = c1 - c2) != 0 || c2 == 0)
303 strncmp(
const char *str,
const char *pat,
size_t len)
311 if ( (ret = c1 - c2) != 0 || c2 == 0)
336 if ( (ret = c1 - c2) != 0 || c2 == 0)
360 if ( (ret = c1 - c2) != 0 || c2 == 0)
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 void WEAK_ATR strupper(char *str)
UPPERCASE a string.
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.
void * safecalloc(int size, int elements)
Safe Alloc - Display Error message if Calloc fails.
MEMSPACE int WEAK_ATR strcasecmp(const char *str, const char *pat)
Compare two strings without case.
Various string and character functions.
MEMSPACE char * stralloc(char *str)
Allocate space for string.
MEMSPACE int WEAK_ATR strncmp(const char *str, const char *pat, size_t len)
Compare two strings maximum len bytes in size.
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 WEAK_ATR char * strcpy(char *dest, const char *src)
copy a string
MEMSPACE int WEAK_ATR strcmp(const char *str, const char *pat)
Compare two strings.
MEMSPACE size_t WEAK_ATR strlen(const char *str)
String Length.
MEMSPACE int WEAK_ATR islower(int c)
MEMSPACE WEAK_ATR char * strncpy(char *dest, const char *src, size_t size)
copy a string of at most N characters
MEMSPACE char * strnalloc(char *str, int len)
Allocate space for string with maximum size.
MEMSPACE int WEAK_ATR isdigit(int c)
test if a character is a digit
MEMSPACE int WEAK_ATR isupper(int c)
Is a character upper case.