X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_string.h;h=0b5d270f7f38d724b5362ef1fb35dfa49cddcd10;hp=2e57bf97db0fcb52263266b2e51de6abe064167d;hb=d9557a9bea506fd8b40acd7a44a16b46e2a97848;hpb=8f7ca44fc807d2e015c135153ee631ef2001fe30 diff --git a/palacios/include/palacios/vmm_string.h b/palacios/include/palacios/vmm_string.h index 2e57bf9..0b5d270 100644 --- a/palacios/include/palacios/vmm_string.h +++ b/palacios/include/palacios/vmm_string.h @@ -37,9 +37,9 @@ #include -void* memset(void* s, int c, size_t n); -void* memcpy(void *dst, const void* src, size_t n); -//void *memmove(void *dst, const void *src, size_t n); +void * memset(void* s, int c, size_t n); +void * memcpy(void *dst, const void* src, size_t n); +void * memmove(void *dst, const void *src, size_t n); int memcmp(const void *s1, const void *s2, size_t n); size_t strlen(const char* s); size_t strnlen(const char *s, size_t maxlen); @@ -50,13 +50,17 @@ char *strncat(char *s1, const char *s2, size_t limit); char *strcpy(char *dest, const char *src); char *strncpy(char *dest, const char *src, size_t limit); char *strdup(const char *s1); -int atoi(const char *buf); +int atoi(const char * buf); +uint64_t atox(const char * buf); +int strtoi(const char * nptr, char ** endptr); +uint64_t strtox(const char * nptr, char ** endptr); char *strchr(const char *s, int c); char *strrchr(const char *s, int c); char *strpbrk(const char *s, const char *accept); - - +size_t strspn(const char * s, const char * accept); +size_t strcspn(const char * s, const char * reject); +char * strstr(const char * haystack, const char * needle); #define isspace(c) (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v')