f7d261b5365795661fd5bb2c921d2234e49cd289
[reactos.git] / reactos / lib / msvcrt / stdio / fwalk.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/internal/file.h>
4
5 // not exported by crtdll
6 __file_rec *__file_rec_list;
7
8 void
9 _fwalk(void (*func)(FILE *))
10 {
11 __file_rec *fr;
12 int i;
13
14 for (fr=__file_rec_list; fr; fr=fr->next)
15 for (i=0; i<fr->count; i++)
16 if (fr->files[i]->_flag)
17 func(fr->files[i]);
18 }