记录一些常用的C库函数和Unix系统调用
string.h- char* strpbrk(const char* str1, const char* str2)检索字符串str1中第一个匹配字符串str2中字符的字符,不包含空结束字符,返回该字符位置
- int strcasecmp(const char* s1, const char* s2);用来比较s1和s2字符串,比较时忽略大小写差异,返回值若s1和s2字符串相同返回0,s1长度大于s2则返回大于0的值
- size_t strspn(const char* str1, const char* str2);检索字符串str1中第一个不在字符串str2中出现的字符下标
- char* strchr(const char*str, int c);在参数str所指向的字符串中搜索第一次出现字符c(一个无符号字符)的位置
- char* strncpy(char* dest, const char* src, size_t n);把src所指向的字符串复制到dest,最多复制n个字节。当src的长度小于n时,dest的剩余部分用空字节填充
- int stat(const char* file_name, struct stat* buf);通过文件名filename获取文件信息,并保存在buf所指的结构体stat中



