Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why doesn't strcmp() return 0?

Name: Anonymous 2007-10-18 22:44

#include <stdio.h>
#include <string.h>

int main(void)
{
    printf("%d\n", strcmp("Hello", "HeIIo"));
    return 0;
}

Name: Anonymous 2007-10-19 1:24

use strncmp() moron, this function to the C functions that must be avoided.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List