Page 1 of 1

Identify X library function for line input and output in the following C code?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> int X(char *s, FILE *iop) { int c; while (c = *s++) putc(c, iop); return ferror(iop) ? EOF : 0; }
a) getc
b) putc
c) fgets
d) fputs