fix file descriptor leaks reported by cppcheck
[libtar.git] / doc / tar_block_read.3
blob144357098e9b494d18d43d8349dcc87dacdfa98b
1 .TH tar_block_read 3 "Jan 2001" "University of Illinois" "C Library Calls"
2 .SH NAME
3 tar_block_read, tar_block_write \- macros to call read and write functions
4 for the correct tar archive type
5 .SH SYNOPSIS
6 .B #include <libtar.h>
7 .P
8 .BI "int tar_block_read(TAR *" t ", char *" buf ");"
10 .BI "int tar_block_write(TAR *" t ", char *" buf ");"
11 .SH VERSION
12 This man page documents version 1.2 of \fBlibtar\fP.
13 .SH DESCRIPTION
14 The \fBtar_block_read\fP() and \fBtar_block_write\fP() macros call
15 the read and write functions for the tar archive type associated with the
16 \fITAR\fP handle \fIt\fP.  This type is set when the \fITAR\fP handle
17 is created using \fBtar_open\fP().
18 .SH RETURN VALUE
19 These macros return the same values as the corresponding read and write
20 functions.
21 .SH SEE ALSO
22 .BR read (2),
23 .BR write (2),
24 .BR tar_open (3)