PostGIS  2.5.0rc1dev-r@@SVN_REVISION@@

◆ SwapWord()

static void SwapWord ( int  length,
void *  wordP 
)
static

Definition at line 302 of file shpopen.c.

Referenced by _SHPSetBounds(), if(), SHPCreateLL(), SHPOpenLL(), SHPWriteHeader(), and SHPWriteObject().

304 {
305  int i;
306  uchar temp;
307 
308  for( i=0; i < length/2; i++ )
309  {
310  temp = ((uchar *) wordP)[i];
311  ((uchar *)wordP)[i] = ((uchar *) wordP)[length-i-1];
312  ((uchar *) wordP)[length-i-1] = temp;
313  }
314 }
unsigned char uchar
Definition: shpopen.c:268
Here is the caller graph for this function: