libwrc(3)

libwrc(3) Library Functions Manual libwrc(3)

NAME

libwrc.hLibrary to access the Windows Resource Compiler (WRC) format

LIBRARY

library “libwrc”

SYNOPSIS

#include <libwrc.h>

Support functions
const char *
libwrc_get_version(void);

int
libwrc_get_access_flags_read();

int
libwrc_get_codepage(int *codepage, libwrc_error_t **error);

int
libwrc_set_codepage(int codepage, libwrc_error_t **error);

Notify functions
void
libwrc_notify_set_verbose(int verbose);

int
libwrc_notify_set_stream(FILE *stream, libwrc_error_t **error);

int
libwrc_notify_stream_open(const char *filename, libwrc_error_t **error);

int
libwrc_notify_stream_close(libwrc_error_t **error);

Error functions
void
libwrc_error_free(libwrc_error_t **error);

int
libwrc_error_fprint(libwrc_error_t *error, FILE *stream);

int
libwrc_error_sprint(libwrc_error_t *error, char *string, size_t size);

int
libwrc_error_backtrace_fprint(libwrc_error_t *error, FILE *stream);

int
libwrc_error_backtrace_sprint(libwrc_error_t *error, char *string, size_t size);

Stream functions
int
libwrc_stream_initialize(libwrc_stream_t **stream, libwrc_error_t **error);

int
libwrc_stream_free(libwrc_stream_t **stream, libwrc_error_t **error);

int
libwrc_stream_open(libwrc_stream_t *stream, const char *filename, int access_flags, libwrc_error_t **error);

int
libwrc_stream_close(libwrc_stream_t *stream, libwrc_error_t **error);

int
libwrc_stream_get_ascii_codepage(libwrc_stream_t *stream, int *ascii_codepage, libwrc_error_t **error);

int
libwrc_stream_set_ascii_codepage(libwrc_stream_t *stream, int ascii_codepage, libwrc_error_t **error);

Available when compiled with wide character string support:
int
libwrc_stream_open_wide(libwrc_stream_t *stream, const wchar_t *filename, int access_flags, libwrc_error_t **error);

Available when compiled with libbfio support:
int
libwrc_stream_open_file_io_handle(libwrc_stream_t *stream, libbfio_handle_t *file_io_handle, int access_flags, libwrc_error_t **error);

DESCRIPTION

The libwrc_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 libwrc.h

ENVIRONMENT

None

FILES

None

NOTES

BUGS

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

AUTHOR

These man pages were written by Joachim Metz.

COPYRIGHT

Copyright 2011-2014, 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 libwrc.h include file

January 5, 2014 libwrc