diff options
author | pgen <p.gen.progs@gmail.com> | 2020-04-24 21:14:59 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2020-04-24 21:14:59 +0200 |
commit | 7b21190d07debb52b86251908c9cdd37fb84b3d2 (patch) | |
tree | 5ea6746a188d8d08a7bc1a8af135c9b67bd511aa /fgetc.c | |
parent | bcb0c7ccde0393e5453fc2c31cb0baede4e88441 (diff) |
Improve comments
Diffstat (limited to 'fgetc.c')
-rw-r--r-- | fgetc.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -19,18 +19,18 @@ static char getc_buffer[GETC_BUFF_SIZE] = { '\0' }; static long next_buffer_pos = 0; /* next free position in the getc buffer */ -/* ====================================== */ -/* Get a (possibly pushed-back) character */ -/* ====================================== */ +/* ======================================= */ +/* Gets a (possibly pushed-back) character */ +/* ======================================= */ int my_fgetc(FILE * input) { return (next_buffer_pos > 0) ? getc_buffer[--next_buffer_pos] : fgetc(input); } -/* ============================ */ -/* Push character back on input */ -/* ============================ */ +/* ============================== */ +/* Pushes character back on input */ +/* ============================== */ void my_ungetc(int c) { |