openssh-portable/contrib/win32/win32compat/misc_internal.h

3 lines
170 B
C
Raw Normal View History

/* removes first '/' for Windows paths that are unix styled. Ex: /c:/ab.cd */
#define sanitized_path(p) (((p)[0] == '/' && (p)[1] != '\0' && (p)[2] == ':')? (p)+1 : (p))