home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_06
/
8n06072a
< prev
next >
Wrap
Text File
|
1990-04-26
|
490b
|
25 lines
*****Listing 1*****
#include <stdio.h>
function()
{
FILE *file_printer; /* Pointer to a file */
int x, y, z;
x = 5;
y = 6;
z = x + y;
/* Open the printer */
file_printer = fopen("LST","w");
/* Print the line */
fprintf(file_printer, "The answer is %10d", z);
/* Close the printer */
fclose(file_printer);
}