Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
strcmp(3)
Edit
PageHistory
Diff
Info
LikePages
STRCMP !!!STRCMP NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO SEE ALSO ---- !!NAME strcmp, strncmp - compare two strings !!SYNOPSIS __#include __''s1''__, const char *__''s2''__); int strncmp(const char *__''s1''__, const char *__''s2''__, size_t__ ''n''__); __ !!DESCRIPTION The __strcmp()__ function compares the two strings ''s1'' and ''s2''. It returns an integer less than, equal to, or greater than zero if ''s1'' is found, respectively, to be less than, to match, or be greater than ''s2''. The __strncmp()__ function is similar, except it only compares the first ''n'' characters of ''s1''. !!RETURN VALUE The __strcmp()__ and __strncmp()__ functions return an integer less than, equal to, or greater than zero if ''s1'' (or the first ''n'' bytes thereof) is found, respectively, to be less than, to match, or be greater than ''s2''. !!CONFORMING TO SVID 3, POSIX, BSD 4.3, ISO 9899 !!SEE ALSO bcmp(3), memcmp(3), strcasecmp(3), strncasecmp(3), strcoll(3) ----
10 pages link to
strcmp(3)
:
AdvancedUserTips
Man3s
bcmp(3)
memcmp(3)
strcasecmp(3)
strcoll(3)
string(3)
strncasecmp(3)
strxfrm(3)
wcscmp(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.