int os_sanity_check_init(struct os_sanity_check *sc)
Initialize the sanity check pointed to by sc
. Sets default values, and ensures memory is cleared out.
Arguments | Description |
---|---|
sc | Pointer to sanity check |
OS_OK
: sanity check initialization is successful
All other error codes indicate an error.
int rc; rc = os_sanity_task_check_init(&my_sanity_check); assert(rc == OS_OK);