]>
Commit | Line | Data |
---|---|---|
1fe6d37e | 1 | /* SPDX-License-Identifier: MIT-0 */ |
f4d74c61 | 2 | |
b35ed553 | 3 | #include <stdio.h> |
fee1863c | 4 | #include <stdlib.h> |
2548ce6a | 5 | #include <systemd/sd-path.h> |
b35ed553 ZJS |
6 | |
7 | int main(void) { | |
fee1863c | 8 | int r; |
b35ed553 ZJS |
9 | char *t; |
10 | ||
fee1863c TM |
11 | r = sd_path_lookup(SD_PATH_USER_DOCUMENTS, NULL, &t); |
12 | if (r < 0) | |
13 | return EXIT_FAILURE; | |
14 | ||
b35ed553 | 15 | printf("~/Documents: %s\n", t); |
fee1863c TM |
16 | free(t); |
17 | ||
18 | return EXIT_SUCCESS; | |
b35ed553 | 19 | } |