Modified library prototypes for C99 compliance