[Pcsclite-cvs-commit] r6726 - trunk/PCSC/src/utils
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Mon Aug 12 13:20:22 UTC 2013
Author: rousseau
Date: 2013-08-12 13:20:22 +0000 (Mon, 12 Aug 2013)
New Revision: 6726
Modified:
trunk/PCSC/src/utils/formaticc.c
Log:
Allow comments starting with #
Modified: trunk/PCSC/src/utils/formaticc.c
===================================================================
--- trunk/PCSC/src/utils/formaticc.c 2013-08-12 12:53:58 UTC (rev 6725)
+++ trunk/PCSC/src/utils/formaticc.c 2013-08-12 13:20:22 UTC (rev 6726)
@@ -182,6 +182,13 @@
if (fgets(line, sizeof(line), fp) == NULL)
break;
+ /* comments */
+ if ('#' == line[0])
+ {
+ printf("%s", line);
+ continue;
+ }
+
line_ptr = line;
if (sscanf(line_ptr, "%x", &x) == 0)
break;
More information about the Pcsclite-cvs-commit
mailing list