Get a description of the error returned from the last iMesh function.
- Parameters:
-
[in] | instance | iMesh instance handle |
[in,out] | descr | Pointer to a character string to be filled with a description of the error from the last iMesh function |
[in] | descr_len | Length of the character string pointed to by descr (String Length Arguments) |
Definition at line 254 of file iMesh_MOAB.cpp.
{
if (instance == NULL) {
strcpy(descr, "iMesh_getDescription: Invalid instance");
}
else {
unsigned int len = MIN(strlen(MBIMESHI->lastErrorDescription),
static_cast<unsigned int>(descr_len));
strncpy(descr, MBIMESHI->lastErrorDescription, len);
descr[len] = '\0';
}
}