Changeset 1fd0b25 for util.c


Ignore:
Timestamp:
Aug 17, 2002, 10:31:35 AM (19 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:
37c27cf
Parents:
8509c08
Message:
Added the 'search' command.
'/' is a keybinding for 'search'
'?' is a keybinding for 'search -r'
Fixed stristr, which was completely broken
renamed owl_fmtext_ztext_stylestrip to owl_function_ztext_styletsrip
     and put it in functions.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    re50cd56 r1fd0b25  
    294294  downstr(y);
    295295  ret=strstr(x, y);
     296  if (ret==NULL) {
     297    owl_free(x);
     298    owl_free(y);
     299    return(NULL);
     300  }
     301  ret=ret-x+a;
    296302  owl_free(x);
    297303  owl_free(y);
     
    337343  int i;
    338344  for (i=0; s[i]; i++) {
    339     if (!isspace(s[i])) return(0);
     345    if (!isspace((int) s[i])) return(0);
    340346  }
    341347  return(1);
Note: See TracChangeset for help on using the changeset viewer.