J
jacob navia
Problem
You want to ensure that a pointer argument to a function
is non-null.
Solution
int fn(double data[static 1]);
This means that the array (that is passed as a pointer)
must have at least 1 element, i.e. can't be NULL.
I wasn't aware of this till a discussion in comp.std.c
You want to ensure that a pointer argument to a function
is non-null.
Solution
int fn(double data[static 1]);
This means that the array (that is passed as a pointer)
must have at least 1 element, i.e. can't be NULL.
I wasn't aware of this till a discussion in comp.std.c