** function to close regular files */
| 117 | ** function to close regular files |
| 118 | */ |
| 119 | static int io_fclose (lua_State *L) { |
| 120 | FILE **p = tofilep(L); |
| 121 | int ok = (fclose(*p) == 0); |
| 122 | *p = NULL; |
| 123 | return pushresult(L, ok, NULL); |
| 124 | } |
| 125 | |
| 126 | |
| 127 | static int aux_close (lua_State *L) { |
nothing calls this directly
no test coverage detected