9p / who / tweedy / 9C / 1


Exercise 1.7: Print EOF

Code

#include <u.h>
#include <libc.h>
#include <bio.h>

void
main()
{
    print("The value of EOF is %d\n", Beof);

    exits(0);
}

Output

$ 9c eof9.c; 9l eof9.o -o eof9
$ ./eof9 
The value of EOF is -1



tweedy