Soramichi's blog

Some seek complex solutions to simple problems; it is better to find simple solutions to complex problems

Entries from 2016-07-07 to 1 day

Psuedo Type Checking in C using Struct

Requirement Let the C compiler recognize two types different, even when the two are actually equivalent in terms of the size and contents. Idea Wrap each type in a struct to add type information, as a compiler recognizes two structs (even …