URL: http://www.firstbasesoftware.com/man/man3/makess.htm
Last modified: 4 April 1996
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]


NAME

makess - make a search string

SYNOPSIS

#include <firstbase/fb.h>

fb_makess(key, type, size)
char *key, type;
int size;

DESCRIPTION

Fb_makess uses the passed in string key and generates a proper FirstBase search string or key. The result is based on a FirstBase field type and size.

This mechanism is used before calling getxrec. It uses pad(3), rjustify(3), and endate(3) depending whether type represents an alpha, numeric or date field.

Again, the string stored back into key is used to locate a record with getxrec(3). If the value of key is intended to represent a partial key, then a call to fb_trim should be used to strip off blanks which otherwise would be used as signficant characters in any search request to getxrec.

SEE ALSO

endate(3), getxrec(3), getxhead(3), pad(3), rjustify(3), trim(3).


URL: http://www.firstbasesoftware.com/man/man3/makess.htm
Last modified: 4 April 1996
Copyright © by FirstBase Software.
[ Index of Contents] [ FirstBase RDBMS Overview]