diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-09-01 16:04:19 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-09-01 16:04:19 -0800 |
| commit | 924581e7b93478dbcc2dea734e1d9a6f28de749a (patch) | |
| tree | 6f57b1a6abda909b28a71510e94a0897d2c8b51f /doc | |
| parent | 9aeedfb9b8521f39b1bc9d02506cfb84d95157d8 (diff) | |
| download | bindletools-924581e7b93478dbcc2dea734e1d9a6f28de749a.tar.gz bindletools-924581e7b93478dbcc2dea734e1d9a6f28de749a.tar.bz2 bindletools-924581e7b93478dbcc2dea734e1d9a6f28de749a.tar.xz bindletools-924581e7b93478dbcc2dea734e1d9a6f28de749a.zip | |
doc: adding man page for bindle_filetostr.3
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/mans/bindle_filetostr.3.in | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/doc/mans/bindle_filetostr.3.in b/doc/mans/bindle_filetostr.3.in new file mode 100644 index 0000000..4e68f78 --- /dev/null +++ b/doc/mans/bindle_filetostr.3.in | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | .\" | ||
| 2 | .\" Bindle Binaries Tools | ||
| 3 | .\" Copyright (C) 2022 David M. Syzdek <david@syzdek.net>. | ||
| 4 | .\" All rights reserved. | ||
| 5 | .\" | ||
| 6 | .\" Redistribution and use in source and binary forms, with or without | ||
| 7 | .\" modification, are permitted provided that the following conditions are | ||
| 8 | .\" met: | ||
| 9 | .\" | ||
| 10 | .\" * Redistributions of source code must retain the above copyright | ||
| 11 | .\" notice, this list of conditions and the following disclaimer. | ||
| 12 | .\" * Redistributions in binary form must reproduce the above copyright | ||
| 13 | .\" notice, this list of conditions and the following disclaimer in the | ||
| 14 | .\" documentation and/or other materials provided with the distribution. | ||
| 15 | .\" * Neither the name of David M. Syzdek nor the | ||
| 16 | .\" names of its contributors may be used to endorse or promote products | ||
| 17 | .\" derived from this software without specific prior written permission. | ||
| 18 | .\" | ||
| 19 | .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 20 | .\" IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 21 | .\" THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 22 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR | ||
| 23 | .\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 24 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 25 | .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 26 | .\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 27 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 28 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 29 | .\" SUCH DAMAGE. | ||
| 30 | .\" | ||
| 31 | .TH "BINDLE_STRING" "3" "@RELEASE_MONTH@" "@PACKAGE_NAME@" "Library Functions Manual" | ||
| 32 | .SH NAME | ||
| 33 | bindle_filetostr - Bindle Binary Tools string routines | ||
| 34 | |||
| 35 | .SH LIBRARY | ||
| 36 | Bindle Binaries Tools (libbindle, -lbindle) | ||
| 37 | |||
| 38 | .SH SYNOPSIS | ||
| 39 | .nf | ||
| 40 | \fB#include\fR \fB<bindle.h>\fR | ||
| 41 | .sp | ||
| 42 | .BI "int bindle_filetostr( char * " dst ", const char * " path ", size_t " size " );" | ||
| 43 | |||
| 44 | .SH DESCRIPTION | ||
| 45 | The \fBbindle_filetostr\fR() function opens the file located at \fIpath\fR and | ||
| 46 | copies up to \fIsize\fR - 1 bytes from the file into the buffer pointed to by | ||
| 47 | \fIdst\fR. If the file is smaller than the buffer, the entire file is copied | ||
| 48 | into the buffer. | ||
| 49 | |||
| 50 | .SH RETURN VALUES | ||
| 51 | If successful, the \fBbindle_filetostr\fR() function returns the number of | ||
| 52 | bytes copied to the buffer pointed to by \fIdst\fR otherwise errno is set | ||
| 53 | and -1 is returned. | ||
| 54 | |||
| 55 | .SH SEE ALSO | ||
| 56 | .BR bindle_strings (3) | ||
| 57 | |||
| 58 | .SH AUTHOR | ||
| 59 | David M. Syzdek <david@syzdek.net> | ||
| 60 | |||
| 61 | .SH ACKNOWLEDGEMENTS | ||
| 62 | \fB@PACKAGE_NAME@\fR is developed and maintained by David M. Syzdek | ||
| 63 | <david@syzdek.net>. | ||
| 64 | |||
| 65 | .\" end of man page | ||
