shithub: npe

ref: a3cd60bca8a6d5e808df4adec51d52c3fce64a18
dir: /libnpe/closedir.c/

View raw version
#include <dirent.h>
#include "_dirent.h"

int
closedir(DIR *d)
{
	free(d->d);
	close(d->fd);
	free(d);

	return 0;
}