---
name: "catclose"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/catclose"
---

# catclose(3)

close message catalog

## NAME

**catclose** – close message catalog

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

**#include \<nl\_types.h\>**

*int*\

**catclose**(*nl\_catd catd*);

## DESCRIPTION

The **catclose**() function closes the message catalog specified by the argument *catd*.

## RETURN VALUES

The **catclose()** function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error.

## ERRORS

- \[EBADF\]

  An invalid message catalog descriptor was passed by the *catd* argument.

## SEE ALSO

[gencat(1)](/gencat/1.md), [catgets(3)](/catgets/3.md), [catopen(3)](/catopen/3.md)

## STANDARDS

The **catclose**() function conforms to IEEE Std 1003.1-2001 (“POSIX.1”).
