Ignore:
Timestamp:
1998-12-21T15:13:55+13:00 (25 years ago)
Author:
rjmcnab
Message:

Added a function to determine whether the current machine is big
or small endian.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/util.pm

    r4 r86  
    356356
    357357
     358# test to see whether this is a big or little endian machine
     359sub is_little_endian {
     360    return (ord(substr(pack("s",1), 0, 1)) == 1);
     361}
     362
    358363
    3593641;
Note: See TracChangeset for help on using the changeset viewer.