Xwindows Intrinsics - print type String in 'C' -
language 'c', **not** c++ environment xwindows intrincics & athena (xt, xaw)
i want use value asciitextwidget in 'c' print statement. type of value "string", typedef of 'char *'.
string argname, argtask, sincewhen; xtvagetvalues(b_txt_21, xtnstring, &argtask ,null); if (strlen(argtask) > 0) { printf ("--new argtask\n"); xtvasetvalues(t_txt_21, xtnstring, argtask ,null); xtvasetvalues(b_txt_21, xtnstring, "" ,null); } printf ("++commit:gets done <%s> <%s>\n", argname,argtask);
this produces:
--new argtask ++commit:gets done <> <>
i can not find converter string->cstring. nor documentation of structure @ end of string's pointer.
solved:
xtvagetvalues sets string correctly. apparently xtvasetvalues clears string content after setting widget. save copy after 'get'.
Comments
Post a Comment