Debian Codegraph @

docs/afCloseFile.3

raw
1 '\" t
2 .\" Title: afCloseFile
3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5 .\" Date: 03/06/2013
6 .\" Manual: \ \&
7 .\" Source: Audio File Library 0.3.6
8 .\" Language: English
9 .\"
10 .TH "AFCLOSEFILE" "3" "03/06/2013" "Audio File Library 0\&.3\&.6" "\ \&"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 afCloseFile \- close an open audio file
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 #include <audiofile\&.h>
36 .fi
37 .sp
38 .nf
39 int afCloseFile(AFfilehandle file);
40 .fi
41 .SH "PARAMETERS"
42 .sp
43 file is a valid file handle created by \fBafOpenFile\fR(3)\&.
44 .SH "DESCRIPTION"
45 .sp
46 afCloseFile closes the audio file \fIfile\fR, updating the file if it was opened for writing\&.
47 .SH "RETURN VALUE"
48 .sp
49 afCloseFile returns 0 if the file was closed properly and \-1 if an error occurred while closing the file\&.
50 .SH "ERRORS"
51 .sp
52 afCloseFile can generate these possible errors:
53 .sp
54 .RS 4
55 .ie n \{\
56 \h'-04'\(bu\h'+03'\c
57 .\}
58 .el \{\
59 .sp -1
60 .IP \(bu 2.3
61 .\}
62
63 AF_BAD_FILEHANDLE
64 .RE
65 .sp
66 .RS 4
67 .ie n \{\
68 \h'-04'\(bu\h'+03'\c
69 .\}
70 .el \{\
71 .sp -1
72 .IP \(bu 2.3
73 .\}
74
75 AF_BAD_LSEEK
76 .RE
77 .sp
78 .RS 4
79 .ie n \{\
80 \h'-04'\(bu\h'+03'\c
81 .\}
82 .el \{\
83 .sp -1
84 .IP \(bu 2.3
85 .\}
86
87 AF_BAD_WRITE
88 .RE
89 .SH "SEE ALSO"
90 .sp
91 \fBafOpenFile\fR(3)
92 .SH "AUTHOR"
93 .sp
94 Michael Pruett <michael@68k\&.org>