PostGIS  2.1.10dev-r@@SVN_REVISION@@
static char* rtpg_strrstr ( const char *  s1,
const char *  s2 
)
static

Definition at line 895 of file rt_pg.c.

References s.

Referenced by RASTER_reclass().

895  {
896  int s1len = strlen(s1);
897  int s2len = strlen(s2);
898  char *s;
899 
900  if (s2len > s1len)
901  return NULL;
902 
903  s = (char *) (s1 + s1len - s2len);
904  for (; s >= s1; --s)
905  if (strncmp(s, s2, s2len) == 0)
906  return s;
907 
908  return NULL;
909 }
char * s
Definition: cu_in_wkt.c:24

Here is the caller graph for this function: