Syntax
#include <nl_types.h> int catclose(nl_catd catd);Description
The catclose function is used to close the catalog message file specified by the parameter catd that was previously opened by catopen.
This example opens and closes a catalog message file.
#include <stdio.h>#include <nl_types.h> void load_cat(char *tcat) { nl_catd catd; if ((catd = catopen(tcat, 0)) == CATD_ERR) { printf("Unable to load specified catalog. \n"); exit (1); } if (catclose(catd) == -1) printf("Error when trying to close catalog file"); }Related Information