encap_find_versions(3) C Library Calls encap_find_versions(3)NAMEencap_find_versions - scan source directory for all versions of a given
package
SYNOPSIS
#include <encap.h>
typedef int (*verfunc_t)(void *, char *, char *);
int encap_find_versions(char *source, char *pkgname, verfunc_t verfunc,
void *state);
VERSION
This man page documents version 2.3 of libencap.
DESCRIPTION
The encap_find_versions() function scans the Encap Source directory
source for all versions of package pkgname. For each version which is
found, the function pointed to by verfunc is called. If verfunc
returns -1, encap_find_versions() returns immediately.
RETURN VALUES
On success, the encap_find_versions() function returns the number of
versions found. If verfunc returns -1, encap_find_versions() returns
-2. On other errors, encap_find_versions() returns -1 and sets the
global variable errno.
SEE ALSOencap_vercmp(3)University of Illinois Oct 2002 encap_find_versions(3)