C语言函数库(o版C语言实现函数调用)

时间:2013-07-11 08:16:48
【文件属性】:

文件名称:C语言函数库(o版C语言实现函数调用)

文件大小:3KB

文件格式:TXT

更新时间:2013-07-11 08:16:48

c语言 函数库

用C语言命令实现各种函数的调用 例:函数名: open 功 能: 打开一个文件用于读或写 用 法: int open(char *pathname, int access[, int permiss]); 程序例: #include #include #include #include int main(void) { int handle; char msg[] = "Hello world"; if ((handle = open("TEST.$$$", O_CREAT | O_TEXT)) == -1) { perror("Error:"); return 1; } write(handle, msg, strlen(msg)); close(handle); return 0; }


网友评论