char *a = null, *b = null; if( ! strcmp( a, b ) ) { printf( "They are the same string\n"; }