tesseract  3.04.01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

233  {
234  va_list ap;
235  int rv;
236 
237  va_start(ap, format);
238  rv = tvfscanf(stream, format, ap);
239  va_end(ap);
240 
241  return rv;
242 }