mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
Skip leading comment lines
svn path=/trunk/; revision=9341
This commit is contained in:
parent
37af37614a
commit
7177d62015
|
@ -27,6 +27,18 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
|
||||
i = 0;
|
||||
while ((ch = fgetc(stdin)) == '#')
|
||||
{
|
||||
while ((ch = fgetc(stdin)) != '\n' && ch != EOF)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (ch != EOF)
|
||||
{
|
||||
buf[i] = ch;
|
||||
i++;
|
||||
}
|
||||
|
||||
while ((ch = fgetc(stdin)) != ':' && ch != EOF)
|
||||
{
|
||||
buf[i] = ch;
|
||||
|
|
Loading…
Reference in a new issue