Go to the documentation of this file.
40 if ((attr.type == DFNT_CHAR) && (attr.read != -1)) {
44 for (
i = 0;
i < len;
i++) {
45 if ((
str[
i] == 0) && (
i != len - 1)) {
46 printf(
"**** object: '%s', attribute: '%s', String has \n",
47 attr.obj_nm, attr.access_nm);
48 printf(
" a null at a location ( %d ) other than the end\n",
50 printf(
" For printing, replaced with '?'\n");
51 printf(
" (NOTE, no error condition set currently\n");
55 }
else if ((
str[
i] != 0) && (
i == len - 1)) {
56 printf(
"**** object: '%s', attribute: '%s', String lacks \n",
57 attr.obj_nm, attr.access_nm);
61 printf(
" a null at the end location ( %d )\n",
i + 1);
void chk_str(attr_str attr, char *str, int32 len)