From b750101eb236130cf056c675997decbac904cc49 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:35:18 +0200 Subject: Adding upstream version 252.22. Signed-off-by: Daniel Baumann --- man/path-documents.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 man/path-documents.c (limited to 'man/path-documents.c') diff --git a/man/path-documents.c b/man/path-documents.c new file mode 100644 index 0000000..a357dd6 --- /dev/null +++ b/man/path-documents.c @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: MIT-0 */ + +#include +#include +#include + +int main(void) { + int r; + char *t; + + r = sd_path_lookup(SD_PATH_USER_DOCUMENTS, NULL, &t); + if (r < 0) + return EXIT_FAILURE; + + printf("~/Documents: %s\n", t); + free(t); + + return EXIT_SUCCESS; +} -- cgit v1.2.3