...
Code Block | ||
---|---|---|
| ||
if (sizeof(int)number > SIZE_MAX/numbersizeof(int)) { /* handle overflow */ } x = (int *)malloc(number * sizeof(int)); if (x == NULL) { /* Handle Allocation Error */ } /* ... */ if (error_conditon == 1) { /* Handle Error Condition*/ } /* ... */ free(x); |
...