Example: Use of NULL Character
This example shows an incorrect and a correct use of the NULL character:
/*************Initialize Data Structures***************************/
/*Error Code*/
/* '/0' is used assuming it to be a NULL character*/
/* memset((void *)(&dsVerifyActivityRulesStatusCodeParms),
(int)('/0'), sizeof(DSD4000260A));*/
/*Correct Use of NULL Character*/
memset((void *)(&dsVerifyActivityRulesStatusCodeParms),
(int)('\0'), sizeof(DSD4000260A));