반응형
int fputc(int c, FILE *fp)
#include <stdio.h> #include <errno.h> #include "local.h" int fputc(int c, FILE *fp) { if (cantwrite(fp)) { errno = EBADF; return (EOF); } return (putc(c, fp)); }
반응형
int fputc(int c, FILE *fp)
#include <stdio.h> #include <errno.h> #include "local.h" int fputc(int c, FILE *fp) { if (cantwrite(fp)) { errno = EBADF; return (EOF); } return (putc(c, fp)); }