tesseract  5.0.0-alpha-619-ge9db
scanutils.h File Reference
#include <cstdio>

Go to the source code of this file.

Functions

int tfscanf (FILE *stream, const char *format,...)
 

Function Documentation

◆ tfscanf()

int tfscanf ( FILE *  stream,
const char *  format,
  ... 
)

fscanf variant to ensure correct reading regardless of locale.

tfscanf parse a file stream according to the given format. See the fscanf manpage for more information, as this function attempts to mimic its behavior.

Note
Note that scientific floating-point notation is not supported.

Definition at line 181 of file scanutils.cpp.

181  {
182  va_list ap;
183  int rv;
184 
185  va_start(ap, format);
186  rv = tvfscanf(stream, format, ap);
187  va_end(ap);
188 
189  return rv;
190 }