Add notes to cat.c

This commit is contained in:
Mid Favila 2022-08-13 20:23:12 -04:00
parent 595ed13da0
commit 568cc5a802
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ char *cat(FILE *fp, const int mode)
for(i = 0; (c = fgetc(fp)) != EOF; i++) for(i = 0; (c = fgetc(fp)) != EOF; i++)
{ {
/* Rewrite using memcpy? */
if(i >= buflen) if(i >= buflen)
{ {
buflen *= 2; buflen *= 2;