---
name: "FcConfigGetCacheDirs"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcConfigGetCacheDirs"
---

# FcConfigGetCacheDirs(3)

return the list of directories searched for cache files

## NAME

FcConfigGetCacheDirs - return the list of directories searched for cache files

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**FcStrList \* FcConfigGetCacheDirs (const FcConfig \****config***);**

## DESCRIPTION

**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.
