** Implementation of the POSIX closedir() function using the MSVCRT. */
| 1502 | ** Implementation of the POSIX closedir() function using the MSVCRT. |
| 1503 | */ |
| 1504 | INT closedir( |
| 1505 | LPDIR dirp |
| 1506 | ){ |
| 1507 | INT result = 0; |
| 1508 | |
| 1509 | if( dirp==NULL ) return EINVAL; |
| 1510 | |
| 1511 | if( dirp->d_handle!=NULL_INTPTR_T && dirp->d_handle!=BAD_INTPTR_T ){ |
| 1512 | result = _findclose(dirp->d_handle); |
| 1513 | } |
| 1514 | |
| 1515 | sqlite3_free(dirp); |
| 1516 | return result; |
| 1517 | } |
| 1518 | |
| 1519 | #endif /* defined(WIN32) && defined(_MSC_VER) */ |
| 1520 |
no outgoing calls
no test coverage detected