Home | History | Annotate | Download | only in libop

Lines Matching full:quote_buf

173 static char * xml_quote(char const * str, char * quote_buf)
180 quote_buf[pos++] = '"';
190 strncpy(quote_buf + pos, "&", 5);
194 strncpy(quote_buf + pos, "<", 4);
198 strncpy(quote_buf + pos, ">", 4);
202 strncpy(quote_buf + pos, """, 6);
206 quote_buf[pos++] = str[i];
211 quote_buf[pos++] = '"';
212 quote_buf[pos++] = '\0';
213 return quote_buf;
220 char quote_buf[MAX_BUF_LEN];
222 char const * quote_str = xml_quote(str, quote_buf);