~nytpu/xdgbasedir.c

ref: 88e492907d26640fee777e818bac2e8323dc7ee4 xdgbasedir.c/README.md -rw-r--r-- 1.4 KiB
88e49290nytpu fix bug not following spec 6 months ago

#xdgbasedir.c — Two-File Library to Find XDG Base Directories

Return directories following the XDG Base Directory Specification. Supports configuration, data, state, cache, and runtime directories. Properly handles the fallback directories in the event that none of the supported environment variables are set.

See xdgbasedir.h for more information.

version: 1.1.1 license: MPL-2.0

#Requirements

  • C compiler and libc supporting the C99 standard.

#Contributing

This repo is part of the Smol C Libs project.

The upstream URL of this project is https://git.sr.ht/~nytpu/xdgbasedir.c. Send suggestions, bugs, patches, and other contributions to ~nytpu/public-inbox@lists.sr.ht. For help sending a patch through email, see https://git-send-email.io. You can browse the list archives at https://lists.sr.ht/~nytpu/public-inbox.

Copyright (C) 2021 nytpu <alex [at] nytpu.com>.

Licensed under the terms of the Mozilla Public License, version 2.0. You can view a copy of the MPL in LICENSE or at https://mozilla.org/MPL/2.0.

#Standards

The source code conforms to ISO/IEC 9899:1999 ("ISO C99") in all cases where said standard is applicable.