- Timestamp:
- Feb 21, 2003, 11:30:23 AM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 2e6d137
- Parents:
- 7933748
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
r7e3e00a red2412d 507 507 } 508 508 509 void owl_util_tr(char *buff, char a, char b) { 510 /* replace all instances of character a in buff with the character 511 b. buff must be null terminated */ 512 int i; 513 514 owl_function_debugmsg("In: %s", buff); 515 for (i=0; buff[i]!='\0'; i++) { 516 if (buff[i]==a) buff[i]=b; 517 } 518 owl_function_debugmsg("Out: %s", buff); 519 } 509 520 510 521 int owl_util_string_to_color(char *color) {
Note: See TracChangeset
for help on using the changeset viewer.