DragonFly On-Line Manual Pages
encap_pkgspec_parse(3) C Library Calls encap_pkgspec_parse(3)
NAME
encap_pkgspec_parse, encap_pkgspec_join - process Encap pkgspecs
SYNOPSIS
#include <encap.h>
int encap_pkgspec_parse(char *pkgspec, char *name, size_t nlen, char
*ver, size_t vlen, char *platform, size_t plen, char *extension, size_t
elen);
int encap_pkgspec_join(char *buf, size_t buflen, char *name, char
*ver);
VERSION
This man page documents version 2.3 of libencap.
DESCRIPTION
The encap_pkgspec_parse() function splits up pkgspec into its component
parts. If name is not NULL, it points to a buffer of size nlen to
which the package name is written. If ver is not NULL, it points to a
buffer of size vlen to which the package version is written. If
platform is not NULL, it points to a buffer of size plen to which the
package's platform is written. If extension is not NULL, it points to
a buffer of size elen to which the package's extension is written.
The encap_pkgspec_join() function combines name and ver to form a new
pkgspec. The new pkgspec is written to the buffer buf with length
buflen.
RETURN VALUES
The encap_pkgspec_parse() and encap_pkgspec_join() functions return 0
on success, or -1 on error (and set errno).
University of Illinois Oct 2002 encap_pkgspec_parse(3)