Changeset f82e233 for text.c


Ignore:
Timestamp:
Dec 1, 2003, 2:04:31 PM (17 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:
3162c8a
Parents:
c1be0c6
Message:
Un-word-wrap text when sending AIM messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • text.c

    r995eb4b rf82e233  
    258258}
    259259
     260/* this modifies 'in' */
     261void owl_text_wordunwrap(char *in)
     262{
     263  int i, j;
     264
     265  j=strlen(in);
     266  for (i=0; i<j; i++) {
     267    if ( (in[i]=='\n') &&
     268         ((i>0) && (i<(j-1))) &&
     269         (in[i-1]!='\n') &&
     270         (in[i+1]!='\n') )
     271      in[i]=' ';
     272  }
     273}
     274
    260275/* exactly like strstr but case insensitive */
    261276char *stristr(char *a, char *b)
Note: See TracChangeset for help on using the changeset viewer.