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

# FcConfigReference(3)

Increment config reference count

## NAME

FcConfigReference - Increment config reference count

## SYNOPSIS

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

**FcConfig \* FcConfigReference (FcConfig \****config***);**

## DESCRIPTION

Add another reference to *config*. Configs are freed only when the reference count reaches zero. If *config* is NULL, the current configuration is used. In that case this function will be similar to FcConfigGetCurrent() except that it increments the reference count before returning and the user is responsible for destroying the configuration when not needed anymore.
