blob: e0228fe4d92904b53b725ef181ad1355978a3827 [file] [log] [blame]
// RUN: test.sh -p -t %t %s
#include <string.h>
#include <assert.h>
// Example of the correct usage of memcmp().
int main()
{
char *string1 = "This is a string.";
char *string2 = "This is a s\tring.";
int result;
result = memcmp(&string1[2], &string2[2], 10);
assert(result > 0);
return 0;
}