All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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.


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 that scientific floating-point notation is not supported.

Definition at line 229 of file scanutils.cpp.

229  {
230  va_list ap;
231  int rv;
233  va_start(ap, format);
234  rv = tvfscanf(stream, format, ap);
235  va_end(ap);
237  return rv;
238 }