tesseract  4.0.0-1-g2a2b
scanutils.h File Reference
#include <cstdint>
#include <cstddef>
#include <cstdio>
#include <sys/stat.h>

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 192 of file scanutils.cpp.

192  {
193  va_list ap;
194  int rv;
195 
196  va_start(ap, format);
197  rv = tvfscanf(stream, format, ap);
198  va_end(ap);
199 
200  return rv;
201 }