libclocale(3)

libclocale(3) Library Functions Manual libclocale(3)

NAME

libclocale.hLibrary to support cross-platform C locale functions

LIBRARY

library “libclocale”

SYNOPSIS

#include <libclocale.h>

Support functions
const char *
libclocale_get_version(void);

Error functions
void
libclocale_error_free(libclocale_error_t **error);

void
libclocale_error_set(libclocale_error_t **error, int error_domain, int error_code, const char *format_string, ...);

int
libclocale_error_matches(libclocale_error_t *error, int error_domain, int error_code);

int
libclocale_error_fprint(libclocale_error_t *error, FILE *stream);

int
libclocale_error_sprint(libclocale_error_t *error, char *string, size_t size);

int
libclocale_error_backtrace_fprint(libclocale_error_t *error, FILE *stream);

int
libclocale_error_backtrace_sprint(libclocale_error_t *error, char *string, size_t size);

System error functions
void
libclocale_system_set_error(libclocale_error_t **error, int error_domain, int error_code, uint32_t system_error_code, const char *format_string, ...);

DESCRIPTION

The libclocale_get_version() function is used to retrieve the library version.

RETURN VALUES

Most of the functions return NULL or -1 on error, dependent on the return type. For the actual return values refer to libclocale.h

ENVIRONMENT

None

FILES

None

BUGS

Please report bugs of any kind to <joachim.metz@gmail.com> or on the project website: http://code.google.com/p/libclocale/

AUTHOR

These man pages were written by Joachim Metz.

COPYRIGHT

Copyright 2010-2013 Joachim Metz <joachim.metz@gmail.com>. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

the libclocale.h include file

January 3, 2013 libclocale