mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-04-15 02:49:45 +08:00
LAB 4 IS DONE.
This commit is contained in:
25
lab/inc/string.h
Normal file
25
lab/inc/string.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef JOS_INC_STRING_H
|
||||
#define JOS_INC_STRING_H
|
||||
|
||||
#include <inc/types.h>
|
||||
|
||||
int strlen(const char *s);
|
||||
int strnlen(const char *s, size_t size);
|
||||
char * strcpy(char *dst, const char *src);
|
||||
char * strncpy(char *dst, const char *src, size_t size);
|
||||
char * strcat(char *dst, const char *src);
|
||||
size_t strlcpy(char *dst, const char *src, size_t size);
|
||||
int strcmp(const char *s1, const char *s2);
|
||||
int strncmp(const char *s1, const char *s2, size_t size);
|
||||
char * strchr(const char *s, char c);
|
||||
char * strfind(const char *s, char c);
|
||||
|
||||
void * memset(void *dst, int c, size_t len);
|
||||
void * memcpy(void *dst, const void *src, size_t len);
|
||||
void * memmove(void *dst, const void *src, size_t len);
|
||||
int memcmp(const void *s1, const void *s2, size_t len);
|
||||
void * memfind(const void *s, int c, size_t len);
|
||||
|
||||
long strtol(const char *s, char **endptr, int base);
|
||||
|
||||
#endif /* not JOS_INC_STRING_H */
|
||||
Reference in New Issue
Block a user