#include <fontconfig.h> FcStrList * FcConfigGetCacheDirs(FcConfig *config); .fi
FcConfigGetCacheDirs returns a string list containing all of the directories that fontconfig will search when attempting to load a cache file for a font directory. If config is NULL, the current configuration is used.
Fontconfig version 2.8.0