From c533a9e1c60fc4627d38402ed12b044f8246200c Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 27 Jun 2024 18:59:00 +0000 Subject: add comment git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4918 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/fileio.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/fileio.c b/lib/fileio.c index d95e5f8c..43e4c93e 100644 --- a/lib/fileio.c +++ b/lib/fileio.c @@ -27,6 +27,12 @@ pm_getc(FILE * const fileP) { ch = (char) ich; if (ch == '#') { + /* This is a comment. Read through the next newline or carriage return + and return just that newline or carriage return. + + The effect is that Caller sees the whole comment as just white + space. + */ do { ich = getc(fileP); if (ich == EOF) -- cgit 1.4.1