操作数的都是 ( char * )型,操作时不考虑末尾的'\0',操作数必须是指向字符串的指针("a"),不能是字符('a')。 size_t strlen( const char *s ); 字符串求长,返回字符串或指针的实际大小,和 sizeof() 不同 char *strrev( char *s ); 字符串反转,不包括 NULL char *strcpy( char *dest, const char *src ); 字符串复制 int atoi( const char *nptr ); 字符串转化为整数 char *strcat( char *dest, const char *src ); 字符串连接 int strcmp( const char *s1, const char *s2 ); 字符串比较 char *strchr( const char *s, int c ); 查找字符,返回首次出现 c 的位置的指针,如果 s 中不存在 c 则返回 NULL