Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

byteorder.c

Go to the documentation of this file.
00001 /*****************************************************************************
00002    Major portions of this software are copyrighted by the Medical College
00003    of Wisconsin, 1994-2000, and are released under the Gnu General Public
00004    License, Version 2.  See the file README.Copyright for details.
00005 ******************************************************************************/
00006    
00007 #include "mrilib.h"
00008 
00009 int main( int argc , char *argv[] )
00010 {
00011    int bb = mri_short_order() ;
00012 
00013    if( argc > 1 && strcmp(argv[1],"-help") == 0 ){
00014      printf("Usage: byteorder\n"
00015             "Prints out a string indicating the byte order of the CPU on\n"
00016             "which the program is running.  For this computer, we have:\n\n" ) ;
00017    }
00018 
00019    if( bb == LSB_FIRST )
00020       printf("CPU byte order = LSB_FIRST\n") ;
00021    else
00022       printf("CPU byte order = MSB_FIRST\n") ;
00023    exit(0) ;
00024 }
 

Powered by Plone

This site conforms to the following standards: