Advanced Programming in the UNIX Environment: Second Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Advanced Programming in the UNIX Environment: Second Edition [Electronic resources] - نسخه متنی

W. Richard Stevens; Stephen A. Rago

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






  • Exercises


    5.2

    Type in the program that copies a file using line-at-a-time I/O (fgets and fputs) from Section 5.8, but use a MAXLINE of 4. What happens if you copy lines that exceed this length? Explain what is happening.

    5.3

    5.4

    The following code works correctly on some machines, but not on others. What could be the problem?


    #include <stdio.h>
    int
    main(void)
    {
    char c;
    while ((c = getchar()) != EOF)
    putchar(c);
    }

    5.5

    Why does tempnam restrict the

    prefix to five characters?

    5.6

    How would you use the fsync function (Section 3.13) with a standard I/O stream?

    5.7

    In the programs in Figures 1.7 and 1.10, the prompt that is printed does not contain a newline, and we don't call fflush. What causes the prompt to be output?

  • / 369