comparison: src/string.c
src/string.c
- changeset 361
- 8ee9e23adbd2
- parent 319
- 0380e438a7ce
- child 363
- 8175ba2b3bcb
equal
deleted
inserted
replaced
33 #include <stdlib.h> |
33 #include <stdlib.h> |
34 #include <string.h> |
34 #include <string.h> |
35 #include <stdarg.h> |
35 #include <stdarg.h> |
36 #include <stdint.h> |
36 #include <stdint.h> |
37 #include <ctype.h> |
37 #include <ctype.h> |
|
38 |
|
39 #ifndef _WIN32 |
|
40 #include <strings.h> /* for strncasecmp() */ |
|
41 #endif /* _WIN32 */ |
38 |
42 |
39 sstr_t sstr(char *cstring) { |
43 sstr_t sstr(char *cstring) { |
40 sstr_t string; |
44 sstr_t string; |
41 string.ptr = cstring; |
45 string.ptr = cstring; |
42 string.length = strlen(cstring); |
46 string.length = strlen(cstring); |