Files
Digital-Research-Source-Code/CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v101/vms/fprintf.c
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

32 lines
975 B
C

/*****************************************************************************
*
* F P R I N T F F U N C T I O N
* -------------------------------
*
* The "fprintf" function is used to write data to a file using "putc".
*
* calling sequence:
*
* FILE *buff;
* .
* .
* .
* fprintf(buff,format,arg1,arg2, ... argn);
*
* Where:
*
* buff -> a UNIX structured buffer
* format is a text string as described in K & R
* Arg1-argn are optional arguments to be converted and
* placed in the output
*
*****************************************************************************/
fprintf (fd,fmt,a1) /* Declare args */
int fd; /* POS channel number */
char *fmt; /* -> Format string */
int a1; /* Whatever the right size */
{ /****************************/
extern char putc(); /* Putc routine from lib. */
_printf (fd,putc,fmt,&a1); /* Invoke secret routine */
} /****************************/