fprintf

fprintf

(library)
Variant of the C library routine printf which prints to a given stream. E.g.

fprintf(stderr, "%s: can't open file \"%s\".", argv[0], argv[1]);

which prints to the "standard error" output stream.
Mentioned in ?
References in periodicals archive ?
mih_opcode == MIH_RESPONSE) recv_msg_get_info_rsp ( p); else { fprintf (stderr, "recv in MIHAgent: Invalid opcode for MIH_MSG_GET_ INFORMATION^"); exit (1); } break;
It provides functions for file opening and closing (fopen and fclose), for unformatted I/O (fread and fwrite), for formatted I/O (fscanf, fprintf, fgetl, and fgets), for file positioning (fseek, frewind, ftell, and ferror), and for string conversion (sprintf and sscanf).
h> /* strlen() */ void PI_listlist(const char* V) { /* *| Uses LL, a list of lists, and prints it | \* */ int i,j; size_t len = strlen(V); clist LL; /* list of lists */ cl_init (&LL); fprintf (stdout, "\n\nPI_listlist() ==\>\n"); for (i=0; i<len; i++) { int VV = ('.
We can very precisely quantify the intelligence that is required here: the compiler should specialize the library function fprintf with respect to the control string, in effect transforming the one-liner above into the original three lines.