_fwalk1 _fwalk int _fwalk(int (*function)(FILE *)) #include #include #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); } 2016. 7. 9. 이전 1 다음