DATRW++ library: seismic data I/O with multiple formats
|
int datrw::util::magic | ( | const char *const | cmagic | ) |
function to create the magic number
Create a magic number from a character string. ,
If represents the input character sequence cmagic
and is the value of sizeof(int)
, then the return value will be
.
cmagic | 4-byte character sequence representing magic number (most restrictive: pass a const pointer to a const char) is pointer to character array of size sizeof(int) |
Definition at line 52 of file bytesex.cc.
Referenced by cpu(), file_magic_test(), and file_magic_write().