Lines Matching refs:ascii
94 struct ng_mesg *reply, *binary, *ascii;
117 if ((ascii = malloc(sizeof(struct ng_mesg)
122 memset(ascii, 0, sizeof(*ascii));
125 strncpy((char *)ascii->header.cmdstr, cmd,
126 sizeof(ascii->header.cmdstr) - 1);
127 strcpy(ascii->data, args);
128 ascii->header.arglen = strlen(ascii->data) + 1;
133 (u_char *)ascii, sizeof(*ascii) + ascii->header.arglen) < 0) {
134 free(ascii);
137 free(ascii);
322 struct ng_mesg *msg, *ascii;
331 ascii = (struct ng_mesg *)msg->data;
346 if (sizeof(*ascii) + ascii->header.arglen > replen) {
354 strncpy(reply->data, ascii->data, ascii->header.arglen);