DragonFly On-Line Manual Pages
encapinfo_write(3) C Library Calls encapinfo_write(3)
NAME
encapinfo_init, encapinfo_write, encapinfo_free,
encapinfo_parse_directive - Encap package creation routines
SYNOPSIS
#include <encap.h>
int encapinfo_init(encapinfo_t *pkginfo);
int encapinfo_write(char *outfile, encapinfo_t *pkginfo);
int encapinfo_free(encapinfo_t *pkginfo);
int encapinfo_parse_directive(char *text, encapinfo_t *pkginfo, char
*effbuf, size_terrsz);
VERSION
This man page documents version 2.3 of libencap.
DESCRIPTION
The encapinfo_init() function initializes data structures within
pkginfo.
The encapinfo_write() function writes the package description data from
pkginfo into the file named by outfile.
The encapinfo_free() function frees memory associated with pkginfo.
The encapinfo_parse_directive() function parses a encapinfo directive
and encodes the directive in pkginfo. On error, a human-readable error
message is written to the buffer pointed to by errbuf, which must be at
least of size errsz.
RETURN VALUES
The encapinfo_init() and fBencapinfo_write() functions return 0 on
success, or -1 on failure (and set errno).
The encapinfo_parse_directive() function returns 0 on success and -1 on
error.
University of Illinois Oct 2002 encapinfo_write(3)