aboutsummaryrefslogtreecommitdiff
path: root/1-07_eof-value.c
blob: aaf838b5faecc8d03c3feceea80304992e206aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

/* The C Programming Language, 2nd Edition
 *
 * Exercise 1-7: Write a program to print the value of EOF.
 *
 * Answer: Just cast it to an integer placeholder in printf().
 */

int main(void) {
	printf("%d\n", EOF);
	return 0;
}
mit/README.mdown?h=v0.3b6&id=8296b242f281eae5f2aff8cd9e223bdc66edf168&follow=1'>Correct phrasing in README.Ze Libertine Gamer1-4/+4 2016-11-13DerpZe Libertine Gamer1-0/+1 2016-11-03Improve error handling in shell scriptsZe Libertine Gamer4-3/+23 2016-10-24Correct run_again, add recursionZe Libertine Gamer1-0/+4 Loops and functions -- oh my, what a useful combination. :) 2016-10-21Add quotes to correct behavior for arglistZe Libertine Gamer1-1/+1 2016-10-14updater.sh: add recursion, error handlingZe Libertine Gamer1-43/+101 2016-10-14Correct pipe-handling behaviorZe Libertine Gamer1-1/+9 2016-10-12Clarify a method to move between platformsZe Libertine Gamer1-2/+5 Also correct a typo.