BRL-CAD
#include "common.h"
#include "bu/defines.h"
Include dependency graph for endian.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  bu_endian_t { BU_LITTLE_ENDIAN = 1234 , BU_BIG_ENDIAN = 4321 , BU_PDP_ENDIAN = 3412 }
 

Functions

bu_endian_t bu_byteorder (void)
 
int bu_gethostname (char *hostname, size_t len)
 

Function Documentation

◆ bu_gethostname()

int bu_gethostname ( char *  hostname,
size_t  len 
)

Get the current operating host's name. This is usually also the network name of the current host. The name is written into the provided hostname buffer of at least len size. The hostname is always null-terminated and should be sized accordingly.