If you are going to do that (and it looks good). Make the str a const
and use C99 initializers?
I'll add a #define MASK2STR(m,s) { .mask = m, .str = s } and push it as an
incremental patch once the bk-commit mail is here (tomorrow evening then).
--
Ueimor