Convet buffer.c to ANSI-style functions.