3 ms·
Good point, but the call could result in an allocation through the modification of a field of result typedef struct { void* some_data_pointer; } api_re
by insulanus 7y ago
Good point, but the call could result in an allocation through the modification of a field of result
typedef struct {
void* some_data_pointer;
} api_result_t;
int get_result(my_api_t api, api_result_t* result) {
result->some_data_pointer = realloc(foo_size + MAGIC_VALUE);
// ...
}