fnkdat is a C header and source file that may be
statically linked to a binary. It provides a platform
independent interface for determining common
directory names (e.g. "user directory", "config
directory", etc...). It's particularly well suited for
games, but by no means limited to that use.