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++;
51 * \fn int file_exists(char *filename)
52 * \brief Checks if a file exists
54 int file_exists(char *filename)
57 //fd = open(filename, OPENFLAG_READ);
58 fd = open(filename, 0);
59 if(fd == -1) return 0;