Rev 1173 | Rev 1314 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1173 | Rev 1301 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | #ifndef __LIBC__STRING_H__ |
30 | #ifndef __LIBC__STRING_H__ |
| 31 | #define __LIBC__STRING_H__ |
31 | #define __LIBC__STRING_H__ |
| 32 | 32 | ||
| 33 | #include <types.h> |
33 | #include <types.h> |
| 34 | 34 | ||
| - | 35 | #define bzero(ptr, len) memset((ptr), 0, (len)) |
|
| - | 36 | ||
| 35 | void * memset(void *s, int c, size_t n); |
37 | void * memset(void *s, int c, size_t n); |
| 36 | void * memcpy(void *dest, void *src, size_t n); |
38 | void * memcpy(void *dest, void *src, size_t n); |
| 37 | 39 | ||
| 38 | size_t strlen(const char *str); |
40 | size_t strlen(const char *str); |
| - | 41 | int strcmp(const char *str1, const char *str2); |
|
| - | 42 | char *strchr(const char *str, int c); |
|
| - | 43 | char *strrchr(const char *str, int c); |
|
| - | 44 | unsigned long strtol(const char *nptr, char **endptr, int base); |
|
| 39 | 45 | ||
| 40 | #endif |
46 | #endif |