Advertisement
hakonhagland

augeas-c

Mar 12th, 2021
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <augeas.h>
  3.  
  4. int main()
  5. {
  6.     char *root = "augeas-root/";
  7.     char *loadpath = NULL;
  8.     unsigned int flags = AUG_ENABLE_SPAN| AUG_SAVE_NEWFILE;
  9.     printf("flags = %u\n", flags);
  10.     struct augeas *aug = aug_init(root, loadpath, flags);
  11.     printf("result = %p\n", (void *) aug);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement