Use ANSI-style function declarations where necessary.
- split sprintf() and snprintf() to solve a linking problem when compiling an application