PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ is_bigendian()

static int is_bigendian ( void  )
static

Definition at line 570 of file pgsql2shp-core.c.

Referenced by ShpDumperCreate().

571 {
572  int test = 1;
573 
574  if ( (((char *)(&test))[0]) == 1)
575  {
576  return 0; /*NDR (little_endian) */
577  }
578  else
579  {
580  return 1; /*XDR (big_endian) */
581  }
582 }
Here is the caller graph for this function: