1ldns(3) Library Functions Manual ldns(3)
2
3
4
6 ldns_fget_token, ldns_fskipcs - get tokens from files
7
8
10 #include <stdint.h>
11 #include <stdbool.h>
12
13 #include <ldns/ldns.h>
14
15 ssize_t ldns_fget_token(FILE *f, char *token, const char *delim, size_t
16 limit);
17
18 void ldns_fskipcs(FILE *fp, const char *s);
19
21 ldns_fget_token() returns a token/char from the stream F. This func‐
22 tion deals with ( and ) in the stream, and ignores them when en‐
23 countered
24 *f: the file to read from
25 *token: the read token is put here
26 *delim: chars at which the parsing should stop
27 *limit: how much to read. If 0 the builtin maximum is used
28 Returns 0 on error of EOF of the stream F. Otherwise return the
29 length of what is read
30
31 ldns_fskipcs() skips all of the characters in the given string in the
32 fp, moving the position to the first character that is not in
33 *s.
34 *fp: file to use
35 *s: characters to skip
36 Returns void
37
39 The ldns team at NLnet Labs.
40
41
43 Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at
44 http://www.nlnetlabs.nl/bugs/index.html
45
46
48 Copyright (c) 2004 - 2006 NLnet Labs.
49
50 Licensed under the BSD License. There is NO warranty; not even for MER‐
51 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
52
53
55 ldns_buffer. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034
56 and RFC4035.
57
59 This manpage was automatically generated from the ldns source code.
60
61
62
63 30 May 2006 ldns(3)