mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +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…
Reference in a new issue