Identify X library function for line input and output in the following C code?
Posted: Wed Jul 13, 2022 7:54 pm
#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
a) getc
b) putc
c) fgets
d) fputs