1ldns(25 Apr 2005) ldns(25 Apr 2005)
2
3
4
6 ldns_bget_token, ldns_bgetc, ldns_bskipcs
7
8
10 #ifdef HAVE_STDINT_H
11 #include <stdint.h>
12 #endif /* HAVE_STDINT_H */
13
14 #ifdef HAVE_STDBOOL_H
15 #include <stdbool.h>
16 #endif /* HAVE_STDBOOL_H */
17
18 #include <ldns/ldns.h>
19
20 ssize_t ldns_bget_token(ldns_buffer *b, char *token, const char *delim,
21 size_t limit);
22
23 int ldns_bgetc(ldns_buffer *buffer);
24
25 void ldns_bskipcs(ldns_buffer *buffer, const char *s);
26
28 ldns_bget_token() returns a token/char from the buffer b. This func‐
29 tion deals with ( and ) in the buffer, and ignores when it finds
30 them.
31 *b: the buffer to read from
32 *token: the token is put here
33 *delim: chars at which the parsing should stop
34 *limit: how much to read. If 0 use builtin maximum
35 Returns s 0 on error of EOF of b otherwise return the length of
36 what is read
37
38 ldns_bgetc() returns the next character from a buffer. Advances the
39 position pointer with 1. When end of buffer is reached returns
40 EOF. This is the buffer's equivalent for getc().
41 *buffer: buffer to read from
42 Returns EOF on failure otherwise return the character
43
44 ldns_bskipcs() skips all of the characters in the given string in the
45 buffer, moving the position to the first character that is not
46 in *s.
47 *buffer: buffer to use
48 *s: characters to skip
49 Returns void
50
52 The ldns team at NLnet Labs. Which consists out of: Jelte Jansen, Erik
53 Rozendaal and Miek Gieben.
54
55
57 Please report bugs to ldns-team@nlnetlabs.nl or in our Bugzilla at
58 http://www.nlnetlabs.nl/bugs/index.html
59
60 Be sure to select ldns as the product.
61
62
64 Copyright (c) 2004, 2005 NLnet Labs. Licensed under the BSD License.
65 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
66 PARTICULAR PURPOSE.
67
68
70 ldns_buffer. And perldoc Net::DNS, RFC1043, RFC1035, RFC4033, RFC4034
71 and RFC4035.
72
74 This manpage was automaticly generated from the ldns source code by use
75 of Doxygen and some perl.
76
77
78
79 ldns(25 Apr 2005)