Пример #1
0
void dll_main()
{
//	printf("%s %s %d.\n", __FILE__, __FUNCTION__, __LINE__);
	if (init_libc() == false)
		goto err;
	
	return;

err:
	;
}
Пример #2
0
WDIR* wopendir(const OsPath& path)
{
	init_libc();
	DIR* d = opendir(OsString(path).c_str());
	if(!d)
		return 0;
	WDIR* wd = new WDIR;
	wd->d = d;
	wd->name[0] = '\0';
	wd->ent.d_name = wd->name;
	return wd;
}