This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/jamlib-1.4.7/doc/JAM_CloseMB.3

51 lines
1.1 KiB
Groff
Raw Normal View History

2016-03-22 02:08:00 +00:00
.\" $Id: JAM_CloseMB.3,v 1.1 2002/11/09 00:37:16 raorn Exp $
.\"
.TH JAM_CloseMB 3 2002-11-07 "" "JAM subroutine library"
.SH NAME
JAM_CloseMB \- Close message base
.SH SYNOPSIS
.nf
.B #include <jamlib/jam.h>
.BI "int JAM_CloseMB(s_JamBase* " Base_PS ");"
.RE
.fi
.SH DESCRIPTION
Unlocks (if locked) and closes the currently open message base.
.SS Arguments
.TP
.I Base_PS
The message base to close. Note, that you must
.BR free (3)
this memory upon successful messagebase closing.
.SH "RETURN VALUE"
.TP
.B 0
if successful
.TP
.B JAM_IO_ERROR
if an I/O error occured. see
.BR JAM_Errno (3)
.TP
.B JAM_LOCK_FAILED
if the message base could not be unlocked
.PP
.SH EXAMPLES
.nf
int Result_I;
Result_I = JAM_CloseMB(Base_PS);
if ( Result_I )
printf("JAM_CloseMB returned %d.\\n", Result_I);
.fi
.SH AUTHOR
This manual page was created by Sir Raorn <raorn@altlinux.ru>,
based on original JAMlib documentation by Bjorn Stenberg
<bjorn@haxx.nu> and Johan Billing <billing@df.lth.se>.
.SH SEE ALSO
.BR jamlib (3),
.BR JAM_OpenMB (3),
.BR JAM_CreateMB (3),
.BR JAM_Errno (3)
.\" vim: ft=nroff