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

◆ DBFGetLenWithoutExtension()

static int DBFGetLenWithoutExtension ( const char *  pszBasename)
static

Definition at line 365 of file dbfopen.c.

366{
367 int i;
368 int nLen = STATIC_CAST(int, strlen(pszBasename));
369 for( i = nLen-1;
370 i > 0 && pszBasename[i] != '/' && pszBasename[i] != '\\';
371 i-- )
372 {
373 if( pszBasename[i] == '.' )
374 {
375 return i;
376 }
377 }
378 return nLen;
379}
#define STATIC_CAST(type, x)
Definition dbfopen.c:96

References STATIC_CAST.

Referenced by DBFCreateLL(), and DBFOpenLL().

Here is the caller graph for this function: