9 char *strcpy(char *dest, const char *src)
\r
20 char *strcat(char *dest, const char *src)
\r
23 while(*dest) dest++;
\r
24 while(*src) *dest++ = *src++;
\r
30 * \fn int strcmp(const char *s1, const char *s2)
\r
31 * \brief Compare two strings
\r
33 int strcmp(const char *s1, const char *s2)
35 while(*s1 && *s1 == *s2) s1++,s2++;
40 * \fn int strlen(const char *str)
\r
43 int strlen(const char *str)
\r
46 while(*str) len++,str++;
\r
51 * \fn int file_exists(char *filename)
\r
52 * \brief Checks if a file exists
\r
54 int file_exists(char *filename)
\r
57 //fd = open(filename, OPENFLAG_READ);
\r
58 fd = open(filename, 0);
\r
59 if(fd == -1) return 0;
\r