putfld() - put a value into a field.


void putfld
    FLD *f,
    void *buf,
    size_t n


FLD *f

The field to add the value to.
void *buf

Pointer to the data to add to the field.
size_t n

The number of elements.

This function puts the pointer in buf into the field. The data pointed to by buf must stay valid until the value in field is no longer needed. N is the number of elements in the buffer, not the number of bytes. For example if you had 2 integers pointed to by buf, and f was an integer field, n should be set to 2.

putdbtblrow(), getfld()

Copyright © Thunderstone Software     Last updated: May 19 2023
Copyright © 2023 Thunderstone Software LLC. All rights reserved.