char * strncpy ( char * destination, const char * source, size_t num );
Parameters
- destination
- Pointer to the destination array where the content is to be copied.
- source
- C string to be copied.
- num
- Maximum number of characters to be copied from source.
Return Value
destination is returned.
int strcmp ( const char * str1, const char * str2 );
Return Value
Returns an integral value indicating the relationship between the strings:
A zero value indicates that both strings are equal.
A value greater than zero indicates that the first character that does not match has a greater value in
str1 than in
str2; And a value less than zero indicates the opposite.
阅读(522) | 评论(0) | 转发(0) |