Mercurial > libbuf
annotate buf_init.3 @ 22:d87e84936795
misc: update copyright years
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 24 Feb 2021 11:43:50 +0100 |
parents | b1991ee4451d |
children | dbdc17e11648 |
rev | line source |
---|---|
0 | 1 .\" |
2 .\" buf_init.3 -- simple string buffer for C | |
3 .\" | |
22
d87e84936795
misc: update copyright years
David Demelier <markand@malikania.fr>
parents:
0
diff
changeset
|
4 .\" Copyright (c) 2019-2021 David Demelier <markand@malikania.fr> |
0 | 5 .\" |
6 .\" Permission to use, copy, modify, and/or distribute this software for any | |
7 .\" purpose with or without fee is hereby granted, provided that the above | |
8 .\" copyright notice and this permission notice appear in all copies. | |
9 .\" | |
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 .\" | |
22
d87e84936795
misc: update copyright years
David Demelier <markand@malikania.fr>
parents:
0
diff
changeset
|
18 .Dd October 29, 2019-2021 |
0 | 19 .Dt BUF_INIT 3 |
20 .Os | |
21 .\" NAME | |
22 .Sh NAME | |
23 .Nm buf_init | |
24 .Nd initialize a buffer | |
25 .\" SYNOPSIS | |
26 .Sh SYNOPSIS | |
27 .In buf.h | |
28 .Ft void | |
29 .Fn buf_init "struct buf *b" | |
30 .\" DESCRIPTION | |
31 .Sh DESCRIPTION | |
32 The | |
33 .Fn buf_init | |
34 function is used to reset the buffer specified by | |
35 .Fa b . | |
36 .Pp | |
37 It does not allocate anything and if can even be unneeded if you have zero'ed | |
38 the object yourself. | |
39 .\" SEE ALSO | |
40 .Sh SEE ALSO | |
41 .Xr libbuf 3 , | |
42 .Xr buf_finish 3 | |
43 .\" AUTHORS | |
44 .Sh AUTHORS | |
45 The | |
46 .Nm libbuf | |
47 library was written by | |
48 .An David Demelier <markand@malikania.fr> |