Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#include <limits.h>
// ...
int err_int = INT_MIN;
float err_float = FLT_MIN;
struct strct err_strct = { .a=err_int, .b=err_float};
// Set up int, float, and strct type arrays
CHKD_ARRAY(int) *int_array = CHKD_ARRAY_CREATE(LENGTH, &err_int);
CHKD_ARRAY(float) *float_array = CHKD_ARRAY_CREATE(LENGTH, &err_float);
CHKD_ARRAY(struct_strct) *strct_array = CHKD_ARRAY_CREATE(LENGTH, &err_strct);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment