home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
446.lha
/
Popen
/
cat.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-06
|
314b
|
18 lines
/*
** This is a real dumb program written to test the "w" form of popen.
** it just echoes stdin to stdout and exits with a strange value to
** see that pclose gets the correct exit status
*/
#include <stdio.h>
#include <stdlib.h>
main()
{
int ch;
while ((ch = getchar()) > 0)
putchar(ch);
exit(122);
}