9 char *strcpy(char *dest, const char *src)
20 char *strcat(char *dest, const char *src)
24 while(*src) *dest++ = *src++;
30 * \fn int strcmp(const char *s1, const char *s2)
31 * \brief Compare two strings
33 int strcmp(const char *s1, const char *s2)
35 while(*s1 && *s1 == *s2) s1++,s2++;
40 * \fn int strlen(const char *str)
43 int strlen(const char *str)
46 while(*str) len++,str++;
50 int memcmp(const void *p1, const void *p2, int len)
52 const char *b1 = p1, *b2 = p2;
55 if(b1 != b2) return b1 - b2;
61 * \fn int file_exists(char *filename)
62 * \brief Checks if a file exists
64 int file_exists(const char *filename)
67 //fd = open(filename, OPENFLAG_READ);
68 fd = open(filename, 0);
69 if(fd == -1) return 0;