getcounter() - Get a valid counter value


ft_counter *getcounter(DDIC *ddic);


DDIC *ddic

Currently open database.

This will return a pointer to a counter structure. This structure is guaranteed to be unique amongst all users of the same database. Getcounter returns an allocated structure, so once it has been committed to disk it must be freed. The pointer that is returned is suitable for use in a putfld() call where the field is of type counter.

Returns a pointer to an allocated structure on success, and NULL on failure.

putfld(), putdbtblrow()

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