69,371
社区成员
发帖
与我相关
我的任务
分享
strcmp( )
NAME
strcmp( ) - compare two strings lexicographically (ANSI)
SYNOPSIS
int strcmp
(
const char * s1, /* string to compare */
const char * s2 /* string to compare s1 to */
)
DESCRIPTION
This routine compares string s1 to string s2 lexicographically.
INCLUDE FILES
string.h
RETURNS
An integer greater than, equal to, or less than 0, according to whether s1 is lexicographically greater than, equal to, or less than s2, respectively.