fixed several off-by-one errors in string handling functions

loading and verifying .s19 files from basflash.s19 works!
This commit is contained in:
Markus Fröschle
2013-03-01 19:18:23 +00:00
parent 9c2a53b84e
commit 7535bb7333
3 changed files with 29 additions and 9 deletions

View File

@@ -13,7 +13,8 @@
extern int strncmp(const char *s1, const char *s2, int max);
extern char *strcpy(char *dst, const char *src);
extern size_t strlen(const char *str);
extern int strncat(char *dst, char *src, int max);
extern char *strcat(char *dst, const char *src);
extern char *strncat(char *dst, const char *src, int max);
extern int atoi(const char *c);
#define isdigit(c) (((c) >= '0') && ((c) <= '9'))