getcounter() - Get a valid counter value

SYNOPSIS

ft_counter *getcounter(DDIC *ddic);


PARAMETERS

DDIC *ddic

Currently open database.


DESCRIPTION
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.


SEE ALSO
putfld(), putdbtblrow()


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.