Specialized functions.

These specialized functions are necessary because of unions used in
structs in the C code.