#include <ctype.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "rdd.h"
#include "rdd_internals.h"
#include "numparser.h"
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 flags_set | ( | flags, | |||
bit | ) | (((flags) & (bit)) == (bit)) |
Definition at line 57 of file numparser.c.
int rdd_parse_bignum | ( | const char * | str, | |
rdd_num_flags_t | flags, | |||
rdd_count_t * | result | |||
) |
Definition at line 78 of file numparser.c.
References _RDD_MULTIPLIER::factor, flags_set, _RDD_MULTIPLIER::mchar, multtab, RDD_COUNT_MAX, RDD_ERANGE, RDD_ESYNTAX, RDD_OK, RDD_POSITIVE, and RDD_POWER2.
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().
int rdd_parse_uint | ( | const char * | str, | |
unsigned * | result | |||
) |
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] |