예제 #1
0
파일: out.c 프로젝트: tomaszkapela/nvml
/*
 * out_get_errormsgW -- get the last error message in wchar_t
 */
const wchar_t *
out_get_errormsgW(void)
{
	struct errormsg *errormsg = Last_errormsg_get();
	const char *utf8 = &errormsg->msg[0];
	wchar_t *utf16 = &errormsg->wmsg[0];
	if (util_toUTF16_buff(utf8, utf16, sizeof(errormsg->wmsg)) != 0)
		FATAL("!Failed to convert string");

	return (const wchar_t *)utf16;
}
예제 #2
0
파일: out.c 프로젝트: waffle-iron/nvml
/*
 * out_get_errormsg -- get the last error message
 */
const char *
out_get_errormsg(void)
{
	return Last_errormsg_get();
}
예제 #3
0
파일: out.c 프로젝트: tomaszkapela/nvml
/*
 * out_get_errormsg -- get the last error message
 */
const char *
out_get_errormsg(void)
{
	const struct errormsg *errormsg = Last_errormsg_get();
	return &errormsg->msg[0];
}