repo.or.cz
/
tcpl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Syntax rewrite, more docs
[tcpl.git]
/
ch1
/
07.c
blob
0a7dc6fe6789600acb463590073150f4184bfd9f
1
/*
2
* Exercise 1-7:
3
* Write a program to print the value of EOF.
4
*/
5
6
#include <stdlib.h>
7
#include <stdio.h>
8
9
int
10
main
(
void
)
11
{
12
// EOF is actually a macro to an integer, as defined in stdio.h.
13
printf
(
"The value of EOF is %i.
\n
"
,
EOF
);
14
15
return
EXIT_SUCCESS
;
16
}