ft_counter *getcounter(DDIC *ddic);
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.