forked from KolibriOS/kolibrios
bugfixing
git-svn-id: svn://kolibrios.org@6412 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -4,7 +4,7 @@ void skipspaces(FILE* file)
|
||||
int c;
|
||||
while(1)
|
||||
{
|
||||
c=getc(file);
|
||||
c=fgetc(file);
|
||||
if (c!=' ' && c!='\r' && c!='\n')
|
||||
{
|
||||
ungetc(c,file);
|
||||
@@ -12,6 +12,7 @@ void skipspaces(FILE* file)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int fscanf(FILE* file,const char* format, ...)
|
||||
{
|
||||
int res;
|
||||
@@ -34,7 +35,7 @@ int fscanf(FILE* file,const char* format, ...)
|
||||
c=fgetc(file);
|
||||
if (c!=*format)
|
||||
{
|
||||
fungetc(c,file);
|
||||
ungetc(c,file);
|
||||
return -1;
|
||||
}
|
||||
format++;
|
||||
|
Reference in New Issue
Block a user