首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

unix程序设计课程笔记

2012-07-15 
unix程序设计教程笔记p1-1.cgethostname(hostname,size)gethostidp1-2.cuname(&uts)p1-3.c 不好使getcwd(b

unix程序设计教程笔记
    p1-1.c
gethostname(hostname,size)
gethostid
    p1-2.c
uname(&uts)
    p1-3.c 不好使
getcwd(buffer, size)
    p2-1.c
fopen("test_file","w")
fputs("Hello world",stream)
fgets(buf, sizeof(buf), stream);
fclose(stream);
读写文件
    p2-2.c
fputc (' ', stdout);
tolower (fgetc (stdin))不好使

热点排行