Changeset 7865479 for text.c


Ignore:
Timestamp:
May 18, 2011, 3:47:19 PM (13 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
1881f36, 1081d0f, 3b8a563, c6c51d2, a844239
Parents:
64c829a
git-author:
Anders Kaseorg <andersk@mit.edu> (02/11/11 02:22:14)
git-committer:
Anders Kaseorg <andersk@mit.edu> (05/18/11 15:47:19)
Message:
Replace owl_text_tr with g_strdelimit

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • text.c

    r42ee1be r7865479  
    275275  g_strfreev(split);
    276276  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);
    291277}
    292278
Note: See TracChangeset for help on using the changeset viewer.