** Implementation of the POSIX closedir() function using the MSVCRT. */
| 1371 | ** Implementation of the POSIX closedir() function using the MSVCRT. |
| 1372 | */ |
| 1373 | INT closedir( |
| 1374 | LPDIR dirp |
| 1375 | ){ |
| 1376 | INT result = 0; |
| 1377 | |
| 1378 | if( dirp==NULL ) return EINVAL; |
| 1379 | |
| 1380 | if( dirp->d_handle!=NULL_INTPTR_T && dirp->d_handle!=BAD_INTPTR_T ){ |
| 1381 | result = _findclose(dirp->d_handle); |
| 1382 | } |
| 1383 | |
| 1384 | sqlite3_free(dirp); |
| 1385 | return result; |
| 1386 | } |
| 1387 | |
| 1388 | #endif /* defined(WIN32) && defined(_MSC_VER) */ |
| 1389 |
no outgoing calls
no test coverage detected