unix程序设计课程笔记

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))不好使

unix程序设计课程笔记

相关文章:

你感兴趣的文章:

标签云: