about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-06-27 18:59:00 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2024-06-27 18:59:00 +0000
commitc533a9e1c60fc4627d38402ed12b044f8246200c (patch)
treef705437b5e46d3ae49db4e1fc5d09577f31d862d /lib
parent2803865c6e36f8d498f30329ee8ddc87c35d7007 (diff)
downloadnetpbm-mirror-c533a9e1c60fc4627d38402ed12b044f8246200c.tar.gz
netpbm-mirror-c533a9e1c60fc4627d38402ed12b044f8246200c.tar.xz
netpbm-mirror-c533a9e1c60fc4627d38402ed12b044f8246200c.zip
add comment
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4918 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/fileio.c6
1 files changed, 6 insertions, 0 deletions
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)