《操作系统》的实验代码。
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.

28 lines
830 B

10 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. char *strcat(char *dst, const char *src);
  9. char *strdup(const char *src);
  10. char *stradd(const char *src1, const char *src2);
  11. int strcmp(const char *s1, const char *s2);
  12. int strncmp(const char *s1, const char *s2, size_t n);
  13. char *strchr(const char *s, char c);
  14. char *strfind(const char *s, char c);
  15. long strtol(const char *s, char **endptr, int base);
  16. void *memset(void *s, char c, size_t n);
  17. void *memmove(void *dst, const void *src, size_t n);
  18. void *memcpy(void *dst, const void *src, size_t n);
  19. int memcmp(const void *v1, const void *v2, size_t n);
  20. #endif /* !__LIBS_STRING_H__ */