GRASS 8 Programmer's Manual 8.6.0dev(2026)-c83afef6d3
Loading...
Searching...
No Matches
endian.c File Reference

GIS Library - Functions to determine architecture endian. More...

Go to the source code of this file.

Functions

int G_is_little_endian (void)
 Tests for little ENDIAN.
 

Detailed Description

GIS Library - Functions to determine architecture endian.

This endian test was taken from ./src.contrib/GMSL/NVIZ2.2/TOGL/apps/image.c.

SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Markus Neteler

Definition in file endian.c.

Function Documentation

◆ G_is_little_endian()

int G_is_little_endian ( void  )

Tests for little ENDIAN.

Test if machine is little or big endian.

Returns
1 little endian
0 big endian

Definition at line 22 of file endian.c.