src/stdlib/path.c
/*===============================================
 * is_path -- Is this a path (not a bare filename) ?
 *  ie, does this have any slashes in it?
 * (does not handle escaped slashes)
 *=============================================*/
- Is this a path (not a bare filename) .
ie, does this have any slashes in it.
(does not handle escaped slashes)
- Is this a path ( not a bare filename ) . ie does this have any slashes in it . ( does not handle escaped slashes )
BOOLEAN
is_path (CNSTRING dir)
{
	if (strchr(dir,LLCHRDIRSEPARATOR)) return TRUE;
#ifdef WIN32
	if (strchr(dir,'/')) return TRUE;
	if (dir[0] && dir[1]==':' && isasciiletter(dir[0])) {
		return TRUE;
	}
#endif
	return FALSE;
}
BOOLEAN is_path ( CNSTRING dir ) { if ( strchr ( dir , LLCHRDIRSEPARATOR ) ) return TRUE ; #ifdef WIN32 if ( strchr ( dir , ' ' ) ) return TRUE ; if ( dir [ 0 ] && dir [ 1 ] == ' ' && isasciiletter ( dir [ 0 ] ) ) { return TRUE ; } #endif return FALSE ; }
is_path -- Is this a path (not a bare filename) ?
is_path -- Is this a path ( not a bare filename ) ?
/* windows \ or / is path separator. */