...
Code Block |
---|
long *buffer;
size_t num_elements = calc_size();
(void) multsize_t(num_elements, sizeof(long));
if(errno) {
/* multsize_t overflowed and error handler returned*/
}
buffer = calloc(num_elements, sizeof(long));
if (buffer == NULL) {
/* handle error condition */
}
|
...