home *** CD-ROM | disk | FTP | other *** search
-
- /* -- put.c create archival file -- */
-
- #include "stdio.h"
-
- #define EOF -1
-
- main()
- {
- int byte, ecode;
- char *header;
- static char hdr_msg[] = "this file is for archive purposes only";
-
- header = hdr_msg;
- ecode = puts(header);
-
- while ( (byte = getchar()) != EOF)
- putchar(byte);
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-