tesseract v5.3.3.20231005
scanutils.h File Reference
#include <tesseract/export.h>
#include <cstdio>

Go to the source code of this file.

Functions

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

Function Documentation

◆ tfscanf()

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

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