14 errDescription = (
char*)malloc(errDescLen);
17 unsigned int getId(){
return id;}
18 void setError(
int code,
const char *description)
23 size_t len = strlen(description) + 1;
26 errDescription = (
char*)realloc(errDescription, len);
27 if(errDescription == NULL)
33 memcpy(errDescription, description, len);
37 *errDescription =
'\0';
42 *description = errDescription;