What is nullChk and how should it be properly used?
I am using the following line of code:
nullChk(temp = malloc (numBytes + 1));
and I get the following error message:
700, 9 error: use of undeclared identifier 'error'
700, 9 error: use of undeclared label 'Error'
It looks like
nullChk
is a macro. I found the definition and comment below in toolbox.h. Note the assumptions that are listed. You don't have to use this macro if you don't want to -- I find it unnecessary myself.The above code is Copyright (c) National Instruments 1987-1996. All Rights Reserved.