1 #ifndef JOS_INC_STRING_H
2 #define JOS_INC_STRING_H
6 int strlen(const char *s
);
7 int strnlen(const char *s
, size_t size
);
8 char * strcpy(char *dst
, const char *src
);
9 char * strncpy(char *dst
, const char *src
, size_t size
);
10 size_t strlcpy(char *dst
, const char *src
, size_t size
);
11 int strcmp(const char *s1
, const char *s2
);
12 int strncmp(const char *s1
, const char *s2
, size_t size
);
13 char * strchr(const char *s
, char c
);
14 char * strfind(const char *s
, char c
);
16 void * memset(void *dst
, int c
, size_t len
);
17 /* no memcpy - use memmove instead */
18 void * memmove(void *dst
, const void *src
, size_t len
);
19 int memcmp(const void *s1
, const void *s2
, size_t len
);
20 void * memfind(const void *s
, int c
, size_t len
);
22 long strtol(const char *s
, char **endptr
, int base
);
24 #endif /* not JOS_INC_STRING_H */