* more re-work
[mascara-docs.git] / i386 / junos / MIT / course / src / src.lab / inc / string.h
blob9dbd4c6c48d99436213d92946280d00a2d2be4ea
1 #ifndef JOS_INC_STRING_H
2 #define JOS_INC_STRING_H
4 #include <inc/types.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 char * strcat(char *dst, const char *src);
11 size_t strlcpy(char *dst, const char *src, size_t size);
12 int strcmp(const char *s1, const char *s2);
13 int strncmp(const char *s1, const char *s2, size_t size);
14 char * strchr(const char *s, char c);
15 char * strfind(const char *s, char c);
17 void * memset(void *dst, int c, size_t len);
18 /* no memcpy - use memmove instead */
19 void * memmove(void *dst, const void *src, size_t len);
20 int memcmp(const void *s1, const void *s2, size_t len);
21 void * memfind(const void *s, int c, size_t len);
23 long strtol(const char *s, char **endptr, int base);
25 #endif /* not JOS_INC_STRING_H */