0
|
1 .\" |
|
2 .\" buf_clear.3 -- simple string buffer for C |
|
3 .\" |
|
4 .\" Copyright (c) 2019-2020 David Demelier <markand@malikania.fr> |
|
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 .\" |
|
18 .Dd October 29, 2019-2020 |
|
19 .Dt BUF_CLEAR 3 |
|
20 .Os |
|
21 .\" NAME |
|
22 .Sh NAME |
|
23 .Nm buf_clear |
|
24 .Nd clear the buffer. |
|
25 .\" SYNOPSIS |
|
26 .Sh SYNOPSIS |
|
27 .In buf.h |
|
28 .Ft void |
|
29 .Fn buf_clear "struct buf *b" |
|
30 .\" DESCRIPTION |
|
31 .Sh DESCRIPTION |
|
32 This function only change the string length, use |
|
33 .Xr buf_shrink 3 |
|
34 if you want to reduce memory usage. |
|
35 .\" SEE ALSO |
|
36 .Sh SEE ALSO |
|
37 .Xr libbuf 3 , |
|
38 .Xr buf_shrink 3 |
|
39 .\" AUTHORS |
|
40 .Sh AUTHORS |
|
41 The |
|
42 .Nm libbuf |
|
43 library was written by |
|
44 .An David Demelier <markand@malikania.fr> |