MGDBSEEK(3) Programmer's Manual MGDBSEEK(3)
NAME
MGdbSeek -- Searches key field for a given value and returns contents of
value field.
LIBRARY
MojaveGreen Software Co general utilities library (libMG, -lMG)
SYNOPSIS
#include <libMG.h>
char*
MGdbSeek(classDb* db, char* fieldName,
char* search fieldName for this value,
char* return value of this field, char* exact);
DESCRIPTION
Searches key field for a given value and returns contents of value field.
Insure you are at the begining of the database by running MGdbGoTop(3)
prior to MGdbSeek
o classDb* db is the data base whose is to be searched
o char* fieldName is the name of the field to be searched
o char* key value is the value in the key field to look for
o char* return field is the name of the field containing the value you
want returned
o char* exact put "exact" in this field if find must match exactly.
otherwise fill with "NULL"
RETURN VALUES
MGdbSeek() returns a string containing the value requested. If key value
is not found the seeker head is not changed and NULL is returned. Use
MGdbGetRecno to get the record number found. Note the record number will
be one greater than the actual record found, this is so MGdbSeek may be
used again to find the next occurence of a searched for item.
SEE ALSO
libMG(3) MGdbSeek(3) MGdbGetRecno(3)
AUTHORS
Michael C. Shultz <ringworm01@gmail.com>
FreeBSD JANUARY 14, 2004 FreeBSD
NAME - LIBRARY - SYNOPSIS - DESCRIPTION - RETURN VALUES - SEE ALSO -
AUTHORS -
|