PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ is_bigendian()

static int is_bigendian ( void  )
static

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

Referenced by ShpDumperCreate().

582 {
583  int test = 1;
584 
585  if ( (((char *)(&test))[0]) == 1)
586  {
587  return 0; /*NDR (little_endian) */
588  }
589  else
590  {
591  return 1; /*XDR (big_endian) */
592  }
593 }
Here is the caller graph for this function: