Some C: bit fields, support functions for manipulating chars from input