Macros | Functions
binScanf.cpp File Reference
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <vector>
#include "sick_scan/binScanf.hpp"
Include dependency graph for binScanf.cpp:

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 
#define ISSPACE   " \t\n\r\f\v"
 
#define MAXLN   (10 * 1024)
 

Functions

static int _binAtob (unsigned long *vp, char *p, int base)
 
static char * _binGetbase (char *p, int *basep)
 
int binAtob (unsigned long *vp, char *p, int base)
 
int binFscanf (FILE *fp, const char *fmt,...)
 
int binIsspace (int val)
 
int binScanfGuessDataLenFromMask (const char *scanfMask)
 
int binScanfVec (const std::vector< unsigned char > *vec, const char *fmt,...)
 
int binSscanf (const char *fmt,...)
 
int binSscanf (const char *buf, const char *fmt,...)
 
static int binVfscanf (FILE *fp, const char *fmt, va_list ap)
 
static int binVsscanf (const char *bufOrg, const char *s, va_list ap, int bufLen)
 sscanf-like function In addition to standard sscanf a format identifier "y" is introduced to parse big endian More...
 

Macro Definition Documentation

#define _CRT_SECURE_NO_WARNINGS

Definition at line 34 of file binScanf.cpp.

#define ISSPACE   " \t\n\r\f\v"

Definition at line 44 of file binScanf.cpp.

#define MAXLN   (10 * 1024)

Definition at line 42 of file binScanf.cpp.

Function Documentation

static int _binAtob ( unsigned long *  vp,
char *  p,
int  base 
)
static

Definition at line 79 of file binScanf.cpp.

static char* _binGetbase ( char *  p,
int *  basep 
)
static

Definition at line 56 of file binScanf.cpp.

int binAtob ( unsigned long *  vp,
char *  p,
int  base 
)

Definition at line 133 of file binScanf.cpp.

int binFscanf ( FILE *  fp,
const char *  fmt,
  ... 
)

Definition at line 168 of file binScanf.cpp.

int binIsspace ( int  val)

Definition at line 46 of file binScanf.cpp.

int binScanfGuessDataLenFromMask ( const char *  scanfMask)

Definition at line 366 of file binScanf.cpp.

int binScanfVec ( const std::vector< unsigned char > *  vec,
const char *  fmt,
  ... 
)

Definition at line 345 of file binScanf.cpp.

int binSscanf ( const char *  fmt,
  ... 
)

Definition at line 153 of file binScanf.cpp.

int binSscanf ( const char *  buf,
const char *  fmt,
  ... 
)

Definition at line 183 of file binScanf.cpp.

static int binVfscanf ( FILE *  fp,
const char *  fmt,
va_list  ap 
)
static

Definition at line 198 of file binScanf.cpp.

static int binVsscanf ( const char *  bufOrg,
const char *  s,
va_list  ap,
int  bufLen 
)
static

sscanf-like function In addition to standard sscanf a format identifier "y" is introduced to parse big endian

Parameters
bufOrgPtr. to original data
sformat identifier
apvariable numer of arguments
bufLenlength of buffer in bytes
Returns
number of parsed arguments

Definition at line 221 of file binScanf.cpp.



sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Tue Jul 9 2019 04:55:32