home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
test
/
c
/
popentest
< 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
Text File
|
1994-03-08
|
249 b
|
22 lines
#include <stdlib.h>
#include <stdio.h>
int
main ()
{
FILE *f;
char b[256];
if (!(f = popen ("min", "r")))
{
perror ("popen()");
exit (1);
}
while (fgets (b, 256, f))
fputs (b, stdout);
pclose (f);
return 0;
}