12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include "_stdio.h"
- int fcloseall (void)
- {
- #ifdef __STDIO_HAS_OPENLIST
- int retval = 0;
- __STDIO_THREADLOCK_OPENLIST;
- while (_stdio_openlist) {
- if (fclose(_stdio_openlist)) {
- retval = EOF;
- }
- }
- __STDIO_THREADUNLOCK_OPENLIST;
- return retval;
- #else
- #warning Always fails in this configuration because no open file list.
- return EOF;
- #endif
- }
|