readhex.c File Reference

Declarations useful for the unit tests. More...

#include "config.h"
#include "testcode/readhex.h"
#include "util/log.h"

Functions

static void skip_whites (const char **p)
 skip whitespace
void hex_to_buf (ldns_buffer *pkt, const char *hex)
 Helper to convert hex string to packet buffer.


Detailed Description

Declarations useful for the unit tests.


Function Documentation

void hex_to_buf ( ldns_buffer *  pkt,
const char *  hex 
)

Helper to convert hex string to packet buffer.

Parameters:
pkt,: buffer to put result in.
hex,: string of hex data. Spaces and ';...' comments are skipped.

References fatal_exit(), log_assert, and skip_whites().

Referenced by perftestpkt(), read_input(), and testpkt().


Generated on Mon Nov 16 11:51:37 2009 for unbound by  doxygen 1.5.9