《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
707 B

12 years ago
  1. #ifndef __LIBS_STRING_H__
  2. #define __LIBS_STRING_H__
  3. #include <defs.h>
  4. size_t strlen(const char *s);
  5. size_t strnlen(const char *s, size_t len);
  6. char *strcpy(char *dst, const char *src);
  7. char *strncpy(char *dst, const char *src, size_t len);
  8. int strcmp(const char *s1, const char *s2);
  9. int strncmp(const char *s1, const char *s2, size_t n);
  10. char *strchr(const char *s, char c);
  11. char *strfind(const char *s, char c);
  12. long strtol(const char *s, char **endptr, int base);
  13. void *memset(void *s, char c, size_t n);
  14. void *memmove(void *dst, const void *src, size_t n);
  15. void *memcpy(void *dst, const void *src, size_t n);
  16. int memcmp(const void *v1, const void *v2, size_t n);
  17. #endif /* !__LIBS_STRING_H__ */