C API: update documentation

This commit is contained in:
José Luis Lafuente 2024-03-29 10:05:21 +01:00
parent 2bb609bce2
commit 2d84433a3b
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A

View file

@ -41,6 +41,8 @@ Nix expression `builtins.nixVersion`.
#include <nix_api_value.h> #include <nix_api_value.h>
#include <stdio.h> #include <stdio.h>
// NOTE: This example lacks all error handling. Production code must check for
// errors, as some return values will be undefined.
int main() { int main() {
nix_libexpr_init(NULL); nix_libexpr_init(NULL);