MSVC doesn't have strcasecmp and strncasecmp; use header for free()

This commit is contained in:
Daniel Kroening 2017-09-16 09:57:03 +01:00
parent ec6ad09190
commit 17c6ca0918
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#include <assert.h>
#include <string.h>
void free(void *);
#include <stdlib.h>
int main()
{
@ -8,8 +8,12 @@ int main()
assert(strcmp(str, "Hello")==0);
assert(strncmp(str, "Hello", 5)==0);
#ifndef _MSC_VER
assert(strcasecmp(str, "HELLO")==0);
assert(strncasecmp(str, "HELLO", 5)==0);
#endif
assert(strcmp(str, "\xff")<0);
assert(strncmp("ASDxx", "ASDyy", 3)==0);