tesseract 3.04.01

ccutil/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.

                                                   {
  va_list ap;
  int rv;

  va_start(ap, format);
  rv = tvfscanf(stream, format, ap);
  va_end(ap);

  return rv;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines