cryptenroll/repart/creds: no longer default to binding against literal PCR 7 (#36200)
[systemd.io.git] / man / path-documents.c
blob994f20bcf4e172f95e6b9c24f832a6e96423c3e2
1 /* SPDX-License-Identifier: MIT-0 */
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <systemd/sd-path.h>
7 int main(void) {
8 int r;
9 char *t;
11 r = sd_path_lookup(SD_PATH_USER_DOCUMENTS, NULL, &t);
12 if (r < 0)
13 return EXIT_FAILURE;
15 printf("~/Documents: %s\n", t);
16 free(t);
18 return EXIT_SUCCESS;