Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <io.h>
bool isLive(const char* name)
{
return name && _access(name,0)==0;
}
#include <windows.h>
bool isDir(const char* dir)
{
HANDLE h;
WIN32_FIND_DATA info;
bool res = false;
if (dir
&& (h=FindFirstFile(dir,&info)) != INVALID_HANDLE_VALUE
&& (info.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY))
{
res = true;
FindClose(h);
}
return res;
}
FILE *fp;
if ( (fp=fopen("c:\\test\\nul","r")) != NULL ) {
fclose(fp);
// directory exists
}
#include <sys/types.h>
#include <dirent.h>
DIR* dp;
if ( ( dp = opendir( "/usr/local/share" ) != NULL )
{
closedir( dp );
/* It's there */
}
else
{
/* It ain't there */
}