MCPcopy Index your code
hub / github.com/MapServer/MapServer / msTryBuildPath3

Function msTryBuildPath3

mapstring.c:748–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746*/
747
748char *msTryBuildPath3(char *szReturnPath, const char *abs_path, const char *path1, const char *path2)
749
750{
751 FILE *fp;
752
753 if( msBuildPath3( szReturnPath, abs_path, path1, path2 ) == NULL )
754 return NULL;
755
756 fp = fopen( szReturnPath, "r" );
757 if( fp == NULL )
758 {
759 strlcpy( szReturnPath, path2, MS_MAXPATHLEN);
760 return NULL;
761 }
762 else
763 fclose( fp );
764
765 return szReturnPath;
766}
767
768/*
769** Splits a string into multiple strings based on ch. Consecutive ch's are ignored.

Callers 6

msOGRFileOpenFunction · 0.85
msRasterQueryByRectFunction · 0.85
msRASTERLayerGetExtentFunction · 0.85
msWCSGetCoverageMetadataFunction · 0.85
msDrawRasterLayerLowFunction · 0.85

Calls 2

msBuildPath3Function · 0.85
strlcpyFunction · 0.85

Tested by

no test coverage detected