home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 1
/
LSD Compendium Deluxe 1.iso
/
a
/
programming
/
assemblers
/
cas.lha
/
nl.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-07-15
|
304 b
|
11 lines
#include <stdio.h>
#include <stdlib.h>
main(int AC, char **AV) {
FILE *FP; int Ch;
if (AC < 2) fprintf(stderr, "Usage: %s Input\n", AV[0]), exit(1);
FP = fopen(AV[1], "rb");
if (FP == 0) fprintf(stderr, "Cannot open %s.\n", AV[1]), exit(1);
while ((Ch = fgetc(FP)) != EOF) putchar(Ch);
}