Client APIs
API Reference Overview
Fetches a data chunk from a duckdb_result. This function should be called repeatedly until the result is exhausted.  
The result must be destroyed with `duckdb_destroy_data_chunk`.  
It is not known beforehand how many chunks will be returned by this result.  
###### Syntax {#docs:api:c:api::syntax}  
```c
duckdb_data_chunk duckdb_fetch_chunk(
duckdb_result result
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `result`: The result object to fetch the data chunk from.  
###### Return Value {#docs:api:c:api::return-value}  
The resulting data chunk. Returns `NULL` if the result has an error.  
<br>