Changeset ed2412d for util.c


Ignore:
Timestamp:
Feb 21, 2003, 11:30:23 AM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2e6d137
Parents:
7933748
Message:
Made M-n work on classes and instances with spaces in them
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r7e3e00a red2412d  
    507507}
    508508
     509void 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}
    509520
    510521int owl_util_string_to_color(char *color) {
Note: See TracChangeset for help on using the changeset viewer.