Lines Matching refs:tmp
137 char *tmp = NULL; in read_chat() local
140 if ((l=strlen(str)) > 0 && (tmp=malloc(l + 1)) != NULL && in read_chat()
145 for (l = 0, p = strtok(strcpy(tmp, str), ws); in read_chat()
223 *chatstr = tmp; in read_chat()
226 free(tmp); in read_chat()
241 char * tmp = buf ? *buf : tmpbuf; in cleanchr() local
244 strcpy(tmp, "M-"); in cleanchr()
251 tmp[l++] = '^'; in cleanchr()
252 tmp[l++] = ch + '@'; in cleanchr()
254 tmp[l++] = '^'; in cleanchr()
255 tmp[l++] = '?'; in cleanchr()
257 tmp[l++] = ch; in cleanchr()
258 tmp[l] = '\0'; in cleanchr()
261 *buf = tmp + l; in cleanchr()
262 return tmp; in cleanchr()
273 static char * tmp = NULL; in cleanstr() local
277 tmp = realloc(tmp, tmplen = l * 4 + 1); in cleanstr()
279 if (tmp == NULL) { in cleanstr()
284 char * p = tmp; in cleanstr()
291 return tmp; in cleanstr()