Vtk_ErrorToString_r
Toolkit Reference

prevnext

Vtk_ErrorToString_r

#include <vtk_errs.h>
const char *Vtk_ErrorToString_r(
Vtk_uint32 errorCode, /* input /*
char *buf, /* input/output /*
int buflen /* input /*
);

Description

This function converts the specified Toolkit error code to a string. The caller must supply a buffer buf of length buflen to store the result. Toolkit copies the error string to the buffer. If the buffer is too small the string is truncated. A buffer of 128 bytes should be sufficient.

Parameters

errorCode The error code to be translated. For information about possible error values, refer to Appendix 
buf The buffer into which the function copies the error.
buflen The length of the buffer.

Return Value

char * The supplied buf pointer.
NULL The function has failed due to an invalid error code.

Notes
The return value must not be deleted.
This is an MT-Safe version of Vtk_ErrorToString.

See Also

Vtk_ErrorToString

Vtk_StatusToStrings

prevnext


ValiCert, Inc.
http://www.valicert.com
Voice: +1.650.567.5469
Fax: (+1.650.254.2148
support@valicert.com