Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
JAM_OpenMB(3)		    JAM	subroutine library		 JAM_OpenMB(3)

NAME
       JAM_OpenMB - Open a message base

SYNOPSIS
       #include	<jamlib/jam.h>

       int JAM_OpenMB(uchar* Basename_PC, s_JamBase** NewBase_PPS);

DESCRIPTION
       Opens  a	message	base. Only one message base can	be open	at one call to
       this function.

   Arguments
       Basename_PC
	      The path and base	filename of the	message	base. "Base  filename"
	      means the	filename without the JAM-specific extension.

       NewBase_PPS
	      A	 pointer  to  a	message	base handle where the new message base
	      handle will be written. On error you must	free(3)	this memory if
	      (*NewBase_PPS) not NULL.

RETURN VALUE
       0      if successful

       JAM_IO_ERROR
	      if an I/O	error occured. see JAM_Errno(3)

       JAM_BAD_PARAM
	      if NewBas_PPS is NULL

EXAMPLES
       int Result_I;

       Result_I	= JAM_OpenMB("/some/where/mybase", &Base_PS);
       if (Result_I)
	 printf("JAM_OpenMB returned %d.\n", Result_I);

AUTHOR
       This manual page	was created by Sir Raorn <raorn@altlinux.ru>, based on
       original	JAMlib documentation by	Bjorn Stenberg <bjorn@haxx.nu> and Jo-
       han Billing <billing@df.lth.se>.

SEE ALSO
       jamlib(3), JAM_CreateMB(3), JAM_CloseMB(3), JAM_Errno(3)

				  2002-11-07			 JAM_OpenMB(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | EXAMPLES | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=JAM_OpenMB&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help