haoningabc 发表于 2013-1-26 15:59:10

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))不好使
页: [1]
查看完整版本: unix程序设计教程笔记