TF++, Miscellaneous classes and modules in C++:
|
int tfxx::ioswap::magic | ( | const char *const | cmagic | ) |
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
.
function to create the magic number
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 59 of file ioswap.cc.
Referenced by cpu(), file_magic_test(), file_magic_write(), and tfxx::fortranio::FortranBinOutput::write_magic().