Convert src/mbyte.c to ANSI functions.