summaryrefslogtreecommitdiffstats
path: root/fgetc.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2020-04-24 21:14:59 +0200
committerpgen <p.gen.progs@gmail.com>2020-04-24 21:14:59 +0200
commit7b21190d07debb52b86251908c9cdd37fb84b3d2 (patch)
tree5ea6746a188d8d08a7bc1a8af135c9b67bd511aa /fgetc.c
parentbcb0c7ccde0393e5453fc2c31cb0baede4e88441 (diff)
Improve comments
Diffstat (limited to 'fgetc.c')
-rw-r--r--fgetc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fgetc.c b/fgetc.c
index aa33a1f..5de851c 100644
--- a/fgetc.c
+++ b/fgetc.c
@@ -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)
{