C Container Collection (CCC)
|
A type for returning an unsigned integer from a container for counting. Intended to count sizes, capacities, and 0-based indices. More...
#include <types.h>
Data Fields | |
ccc_result | error |
size_t | count |
A type for returning an unsigned integer from a container for counting. Intended to count sizes, capacities, and 0-based indices.
Access the fields of this struct directly to check for errors and then use the returned index. If an error has occurred, the index is invalid. An error will be indicated by any non-zero value in the error field.
Full string explanations of the exact ccc_result error types can be provided via the ccc_result_msg function if the enum itself does not provide sufficient explanation.
size_t ccc_ucount::count |
The count returned by the operation.
ccc_result ccc_ucount::error |
The error that occurred indicated by a status. 0 (falsey) means OK.