The C language preprocessor can get some useful information, simplify the code, here are some examples.
How to send an email from the command line.
A small guide on how to properly use the printf function to obtain a display clean and safe.
Different ways to retrieve environment variables in language C on linux.
A small overview of how to independently use bits of a byte in the 'C' language.