<< 点击显示目录 >> 主页 exOS使用助手 > exOS Automation Help > Development > Programming > exOS Communication API reference (exos_api.h) > exos_get_error_string(): String representation of an error |
char *exos_get_error_string(EXOS_ERROR_CODE error);
使用函数 exos_get_error_string(),可以获得错误代码的文本(ASCII 字符串)表示。
使用示例
printf("error (%d) occured: %s", datamodel->error, exos_get_error_string(datamodel->error));
char *exos_get_error_string(EXOS_ERROR_CODE error);
With the function exos_get_error_string(), a textual (ASCII string) representation of an error code can be aquired.
usage example:
printf("error (%d) occured: %s", datamodel->error, exos_get_error_string(datamodel->error));