shishi_error_set(3) API function

SYNOPSIS

#include <shishi.h>

void shishi_error_set(Shishi * handle, const char * errstr);

ARGUMENTS

Shishi * handle
shishi handle as allocated by shishi_init().
const char * errstr
Zero terminated character array containing error description, or NULL to clear the error description string.

DESCRIPTION

Set the detailed error information string to specified string. The string is copied into the Shishi internal structure, so you can deallocate the string passed to this function after the call. This function is mostly for Shishi internal use, but if you develop an extension of Shishi, it may be useful to use the same error handling infrastructure.

REPORTING BUGS

Report bugs to <[email protected]>.

COPYRIGHT

Copyright © 2002-2010 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.