Format
#include <variant.h> struct variant *getsyntx(void);
Language Level: Extension
getsyntx determines the encoding of the special
characters defined in the LC_SYNTAX category of the current
locale, and stores the encoding values in the structure of type
struct variant. For details of the structure type, see <variant.h>.
Your program cannot modify the returned structure. The structure can be overwritten by a call to setlocale with the argument LC_ALL or LC_SYNTAX.
Return Value
getsyntx returns the pointer to the
structure containing the values of the special characters. If the
information about the special characters is not available in the
current locale, getsyntx returns a null pointer.
![]()
setlocale -- Set Locale
<locale.h>
<variant.h>