41 #ifndef OPAL_OS_PATH_H
42 #define OPAL_OS_PATH_H
44 #include "opal_config.h"
66 OPAL_DECLSPEC
char *
opal_os_path(
bool relative, ...) __opal_attribute_malloc__ __opal_attribute_sentinel__ __opal_attribute_warn_unused_result__;
74 #if defined(__WINDOWS__)
80 if( NULL == filename )
83 length = strlen(filename);
84 if( strncmp( filename,
"/cygdrive/", 10 ) == 0 ) {
85 memmove( filename + 1, filename + 10, length - 10 );
86 filename[0] = filename[1];
88 filename[length - 10 + 1] =
'\0';
90 for( ; *p !=
'\0'; p++ ) {
97 #define opal_make_filename_os_friendly(PATH) (PATH)
#define opal_make_filename_os_friendly(PATH)
Convert the path to be OS friendly.
Definition: os_path.h:97
BEGIN_C_DECLS OPAL_DECLSPEC char * opal_os_path(bool relative,...) __opal_attribute_malloc__ __opal_attribute_sentinel__ __opal_attribute_warn_unused_result__
Definition: os_path.c:35