strcmp.c

The libc implementation

Author

Martin ‘Solar’ Baute

License

Public Domain

Summary
strcmp.cThe libc implementation
Functions
strcmpCompares s1 to s2

Functions

strcmp

int strcmp(const char *s1,
const char *s2)

Compares s1 to s2

Returns positive if the value of s1 is larger than s2

Returns negative if the value of s1 is smaller than s2

Returns zero if s1 equals s2

int strcmp(const char *s1,
const char *s2)
Compares s1 to s2