반응형
int _fwalk(int (*function)(FILE *))
#include <errno.h> #include <stdio.h> #include "local.h" #include "glue.h" int _fwalk(int (*function)(FILE *)) { FILE *fp; int n, ret; struct glue *g; ret = 0; for (g = &__sglue; g != NULL; g = g->next) for (fp = g->iobs, n = g->niobs; --n >= 0; fp++) if (fp->_flags != 0) ret |= (*function)(fp); return (ret); }
반응형