src/numparser.c File Reference

#include <ctype.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "numparser.h"

Include dependency graph for numparser.c:

Go to the source code of this file.

Data Structures

struct  _RDD_MULTIPLIER

Defines

#define flags_set(flags, bit)   (((flags) & (bit)) == (bit))

Functions

int rdd_parse_bignum (const char *str, rdd_num_flags_t flags, rdd_count_t *result)
int rdd_parse_tcp_port (const char *str, unsigned *result)
int rdd_parse_uint (const char *str, unsigned *result)

Variables

static char copyright []
static struct _RDD_MULTIPLIER multtab []


Define Documentation

#define flags_set ( flags,
bit   )     (((flags) & (bit)) == (bit))

Definition at line 57 of file numparser.c.


Function Documentation

int rdd_parse_bignum ( const char *  str,
rdd_num_flags_t  flags,
rdd_count_t result 
)

int rdd_parse_tcp_port ( const char *  str,
unsigned *  result 
)

Definition at line 157 of file numparser.c.

References RDD_ERANGE, RDD_OK, and rdd_parse_uint().

Here is the call graph for this function:

int rdd_parse_uint ( const char *  str,
unsigned *  result 
)

Definition at line 139 of file numparser.c.

References RDD_ESYNTAX, and RDD_OK.


Variable Documentation

char copyright[] [static]

Initial value:

"@(#) Copyright (c) 2002-2004\n\
    Netherlands Forensic Institute.  All rights reserved.\n"

Definition at line 39 of file numparser.c.

struct _RDD_MULTIPLIER multtab[] [static]


Generated on Sun Feb 6 12:36:18 2011 for rdd by  doxygen 1.5.6