tesseract  4.00.00dev
scanutils.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#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 228 of file scanutils.cpp.

228  {
229  va_list ap;
230  int rv;
231 
232  va_start(ap, format);
233  rv = tvfscanf(stream, format, ap);
234  va_end(ap);
235 
236  return rv;
237 }
voidpf stream
Definition: ioapi.h:39