mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
C API: update documentation
This commit is contained in:
parent
2bb609bce2
commit
2d84433a3b
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ Nix expression `builtins.nixVersion`.
|
|||
#include <nix_api_value.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() {
|
||||
nix_libexpr_init(NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue