...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdlib.h> const intsize_t BUFFER_SIZE = 32; int f(void) { char *text_buffer = (char *)malloc(BUFFER_SIZE); if (text_buffer == NULL) { return -1; } return 0; } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdlib.h> const intsize_t BUFFER_SIZE = 32; int f(void) { char *text_buffer = (char *)malloc(BUFFER_SIZE); if (text_buffer == NULL) { return -1; } free(text_buffer); return 0; } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdlib.h> const intsize_t BUFFER_SIZE = 32; int f(void) { static char *text_buffer = (char *)malloc(BUFFER_SIZE); if (text_buffer == NULL) { return -1; } return 0; } |
...