X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_string.h;h=78c3cf004f8ea38eaaabf020d16d827047e3d45f;hp=0b5d270f7f38d724b5362ef1fb35dfa49cddcd10;hb=123a1ba27ea09c8fa77a1b36ce625b43d7c48b14;hpb=0e097100a26bc43eb8964734fa43130fc4c71429 diff --git a/palacios/include/palacios/vmm_string.h b/palacios/include/palacios/vmm_string.h index 0b5d270..78c3cf0 100644 --- a/palacios/include/palacios/vmm_string.h +++ b/palacios/include/palacios/vmm_string.h @@ -44,7 +44,9 @@ 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); int strcmp(const char* s1, const char* s2); +int strcasecmp(const char* s1, const char* s2); int strncmp(const char* s1, const char* s2, size_t limit); +int strncasecmp(const char* s1, const char* s2, size_t limit); char *strcat(char *s1, const char *s2); char *strncat(char *s1, const char *s2, size_t limit); char *strcpy(char *dest, const char *src); @@ -62,8 +64,12 @@ 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); +void str_tolower(char * s); +void str_toupper(char * s); -#define isspace(c) (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v') + + +#define isspace(c) (c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v') #define isascii(c) (((c) & ~0x7f) == 0) #define isupper(c) ((c) >= 'A' && (c) <= 'Z') #define islower(c) ((c) >= 'a' && (c) <= 'z')