#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <vector>
#include "sick_scan/binScanf.hpp"
Go to the source code of this file.
|  | 
| 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 *buf, const char *fmt,...) | 
|  | 
| int | binSscanf (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... 
 | 
|  | 
◆ _CRT_SECURE_NO_WARNINGS
      
        
          | #define _CRT_SECURE_NO_WARNINGS | 
      
 
 
◆ ISSPACE
      
        
          | #define ISSPACE   " \t\n\r\f\v" | 
      
 
 
◆ MAXLN
      
        
          | #define MAXLN   (10 * 1024) | 
      
 
 
◆ _binAtob()
  
  | 
        
          | static int _binAtob | ( | unsigned long * | vp, |  
          |  |  | char * | p, |  
          |  |  | int | base |  
          |  | ) |  |  |  | static | 
 
 
◆ _binGetbase()
  
  | 
        
          | static char* _binGetbase | ( | char * | p, |  
          |  |  | int * | basep |  
          |  | ) |  |  |  | static | 
 
 
◆ binAtob()
      
        
          | int binAtob | ( | unsigned long * | vp, | 
        
          |  |  | char * | p, | 
        
          |  |  | int | base | 
        
          |  | ) |  |  | 
      
 
 
◆ binFscanf()
      
        
          | int binFscanf | ( | FILE * | fp, | 
        
          |  |  | const char * | fmt, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
 
◆ binIsspace()
      
        
          | int binIsspace | ( | int | val | ) |  | 
      
 
 
◆ binScanfGuessDataLenFromMask()
      
        
          | int binScanfGuessDataLenFromMask | ( | const char * | scanfMask | ) |  | 
      
 
 
◆ binScanfVec()
      
        
          | int binScanfVec | ( | const std::vector< unsigned char > * | vec, | 
        
          |  |  | const char * | fmt, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
 
◆ binSscanf() [1/2]
      
        
          | int binSscanf | ( | const char * | buf, | 
        
          |  |  | const char * | fmt, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
 
◆ binSscanf() [2/2]
      
        
          | int binSscanf | ( | const char * | fmt, | 
        
          |  |  |  | ... | 
        
          |  | ) |  |  | 
      
 
 
◆ binVfscanf()
  
  | 
        
          | static int binVfscanf | ( | FILE * | fp, |  
          |  |  | const char * | fmt, |  
          |  |  | va_list | ap |  
          |  | ) |  |  |  | static | 
 
 
◆ binVsscanf()
  
  | 
        
          | 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
- 
  
    | bufOrg | Ptr. to original data |  | s | format identifier |  | ap | variable numer of arguments |  | bufLen | length of buffer in bytes |  
 
- Returns
- number of parsed arguments 
Definition at line 252 of file binScanf.cpp.