Changes in text.c [7865479:42ee1be]
Legend:
- Unmodified
- Added
- Removed
-
text.c
r7865479 r42ee1be 275 275 g_strfreev(split); 276 276 return out; 277 } 278 279 /* replace all instances of character a in buff with the character 280 * b. buff must be null terminated. 281 */ 282 void owl_text_tr(char *buff, char a, char b) 283 { 284 int i; 285 286 owl_function_debugmsg("In: %s", buff); 287 for (i=0; buff[i]!='\0'; i++) { 288 if (buff[i]==a) buff[i]=b; 289 } 290 owl_function_debugmsg("Out: %s", buff); 277 291 } 278 292
Note: See TracChangeset
for help on using the changeset viewer.