| N F O _ L I B V E R C M P ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - NFO_#?
----------------------------------------------------------------------------
NAME
nfo_libvercmp() - Allows to compare library vers. and/or
its id string.
SYNOPSIS
ver = nfo_libvercmp(restype, name, minver, pattern);
WORD nfo_libvercmp(LONG, UBYTE *, UWORD, UBYTE *);
FUNCTION
This function allows to quickly compare version and/or id
string of a library that is on the disk or in the memory.
INPUTS
restype - Type of op. There are two types. One that allows
to load the library into mem. for the inspection
and one that scans the memory for that library.
name - Name of the object, with ".library" suffix.
minver - Minimum version of the object.
pattern - Pattern that can match something in id string.
This argument can be NULL if there is no need to
search for the pattern.
RETURNS
Function returns -1 on miss/error or object version.
BASES
SysBase, (DOSBase)
NOTES
None.
SEE ALSO
nfo_devvercmp()
EXAMPLE
...
if ((nfo_libvercmp(QDEV_NFO_XXXVERCMP_MEM,
"graphics.library",
40,
"#?18.5.93#?")) > -1)
{
/* Original(40.68) "graphics.library" */
}
BUGS
None known.
----------------------------------------------------------------------------
| |
| |