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

你可能感兴趣的:(C++,c,unix,C#)