URL: http://www.firstbasesoftware.com/man/man3/store.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[
Index of Contents] [
FirstBase RDBMS Overview]
fb_store(k, s, db)
fb_field *k;
char *s;
fb_database *db;
Store provides a mechanism for creating or modifying fields within the array of field descriptors stored in the database structure. Once modified, putrec(3) is used to write the entire record to the database file.
Fb_store places the string s into field k of the database pointed to by db. No length checking is done to make sure s does not exceed the maximum width of the field as defined in the database dictionary.
Fb_store uses the alternate storage area, db->arec, to store the field. The field descriptor is updated to point to this new area.
Note that in the case of FB_BINARY fields, the entire field is ALWAYS fixed length. Furthermore, it is up to the programmer using fb_store to make sure the object being stored is the same byte size as the field length in the database dictionary.