摘要: endgrent(关闭组文件) 相关函数 getgrent,setgrent 表头文件 #include<grp.h>#include<sys/types.h> 定义函数 void endgrent(void); 函数说明 endgrent()用来关闭由getgrent()所打开的密码文件。 返回值 阅读全文
posted @ 2020-06-13 13:17 舒斯特 阅读(175) 评论(0) 推荐(0) 编辑
摘要: getenv(取得环境变量内容) 相关函数 putenv,setenv,unsetenv 表头文件 #include<stdlib.h> 定义函数 char * getenv(const char *name); 函数说明 getenv()用来取得参数name环境变量的内容。参数name为环境变量的 阅读全文
posted @ 2020-06-13 13:16 舒斯特 阅读(112) 评论(3) 推荐(0) 编辑
摘要: accept(接受socket连线) 相关函数 socket,bind,listen,connect 表头文件 #include<sys/types.h>#include<sys/socket.h> 定义函数 int accept(int s,struct sockaddr * addr,int * 阅读全文
posted @ 2020-06-13 13:15 舒斯特 阅读(135) 评论(0) 推荐(0) 编辑
摘要: alarm(设置信号传送闹钟) 相关函数 signal,sleep 表头文件 #include<unistd.h> 定义函数 unsigned int alarm(unsigned int seconds); 函数说明 alarm()用来设置信号SIGALRM在经过参数seconds指定的秒数后传送 阅读全文
posted @ 2020-06-13 13:11 舒斯特 阅读(156) 评论(0) 推荐(0) 编辑
摘要: atexit(设置程序正常结束前调用的函数) 相关函数 _exit,exit,on_exit 表头文件 #include<stdlib.h> 定义函数 int atexit (void (*function)(void)); 函数说明 atexit()用来设置一个程序正常结束前调用的函数。当程序通过 阅读全文
posted @ 2020-06-13 13:10 舒斯特 阅读(241) 评论(0) 推荐(0) 编辑
摘要: clearerr(清除文件流的错误旗标) 相关函数 feof 表头文件 #include<stdio.h> 定义函数 void clearerr(FILE * stream); 函数说明 clearerr()清除参数stream指定的文件流所使用的错误旗标。 返回值 fclose(关闭文件) 相关函 阅读全文
posted @ 2020-06-13 13:09 舒斯特 阅读(44) 评论(0) 推荐(0) 编辑
摘要: close(关闭文件) 相关函数 open,fcntl,shutdown,unlink,fclose 表头文件 #include<unistd.h> 定义函数 int close(int fd); 函数说明 当使用完文件后若已不再需要则可使用close()关闭该文件,二close()会让数据写回磁盘 阅读全文
posted @ 2020-06-13 13:08 舒斯特 阅读(97) 评论(0) 推荐(0) 编辑
摘要: crypt(将密码或数据编码) 相关函数 getpass 表头文件 #define _XOPEN_SOURCE#include<unistd.h> 定义函数 char * crypt (const char *key,const char * salt); 函数说明 crypt()将使用Data E 阅读全文
posted @ 2020-06-13 13:07 舒斯特 阅读(259) 评论(0) 推荐(0) 编辑
摘要: bcmp(比较内存内容) 相关函数 bcmp,strcasecmp,strcmp,strcoll,strncmp,strncasecmp 表头文件 #include<string.h> 定义函数 int bcmp ( const void *s1,const void * s2,int n); 函数 阅读全文
posted @ 2020-06-13 13:06 舒斯特 阅读(124) 评论(0) 推荐(0) 编辑
摘要: asctime(将时间和日期以字符串格式表示) 相关函数 time,ctime,gmtime,localtime 表头文件 #include<time.h> 定义函数 char * asctime(const struct tm * timeptr); 函数说明 asctime()将参数timept 阅读全文
posted @ 2020-06-13 13:05 舒斯特 阅读(712) 评论(0) 推荐(0) 编辑