2 * netsniff-ng - the packet sniffing beast
3 * By Daniel Borkmann <daniel@netsniff-ng.org>
4 * Copyright 2011 Daniel Borkmann.
16 char *getuint(char *in
, uint32_t *out
)
25 *out
= strtoul(in
, &endptr
, 0);
27 if ((endptr
!= NULL
&& *endptr
!= '\0') || errno
!= 0) {
28 panic("Syntax error!\n");
34 char *strtrim_right(register char *p
, register char c
)
52 char *strtrim_left(register char *p
, register char c
)