This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
piquant/tests/string_strcmp.c

14 lines
328 B
C

#include "string.h"
int main(void)
{
if ( strcmp(NULL, NULL) != 1 ) return 1;
if ( strcmp("Test", NULL) != 1 ) return 2;
if ( strcmp(NULL, "Test") != 1 ) return 3;
if ( strcmp("Test", "Test") != 0 ) return 4;
if ( strcmp("test", "Test") != 1 ) return 5;
if ( strcmp("Test1", "Test") != 1 ) return 6;
return 0;
}