---
name: "FcConfigGetSysRoot"
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/FcConfigGetSysRoot"
---

# FcConfigGetSysRoot(3)

Obtain the system root directory

## NAME

FcConfigGetSysRoot - Obtain the system root directory

## SYNOPSIS

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

**const FcChar8 \* FcConfigGetSysRoot (const FcConfig \****config***);**

## DESCRIPTION

Obtains the system root directory in 'config' if available. All files (including file properties in patterns) obtained from this 'config' are relative to this system root directory.

This function isn't MT-safe. **FcConfigReference** must be called before using this and then **FcConfigDestroy** when the return value is no longer referenced.

## SINCE

version 2.10.92
