PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ SHPGetLenWithoutExtension()

static int SHPGetLenWithoutExtension ( const char *  pszBasename)
static

Definition at line 305 of file shpopen.c.

306{
307 int i;
308 int nLen = STATIC_CAST(int, strlen(pszBasename));
309 for( i = nLen-1;
310 i > 0 && pszBasename[i] != '/' && pszBasename[i] != '\\';
311 i-- )
312 {
313 if( pszBasename[i] == '.' )
314 {
315 return i;
316 }
317 }
318 return nLen;
319}
#define STATIC_CAST(type, x)
Definition shpopen.c:100

References STATIC_CAST.

Referenced by SHPCreateLL(), SHPOpenLL(), and SHPRestoreSHX().

Here is the caller graph for this function: