net-snmp 5.7
closedir.c
00001 /*
00002  * closedir() replacement for MSVC.
00003  */
00004 
00005 #define WIN32IO_IS_STDIO
00006 
00007 #include <net-snmp/net-snmp-config.h>
00008 #include <net-snmp/types.h>
00009 #include <net-snmp/library/system.h>
00010 
00011 /*
00012  * free the memory allocated by opendir 
00013  */
00014 int
00015 closedir(DIR * dirp)
00016 {
00017     free(dirp->start);
00018     free(dirp);
00019     return 1;
00020 }