Subversion Repositories SvarDOS

Rev

Rev 994 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 994 Rev 995
Line 38... Line 38...
38
    curpos[x - 1] = 0;
38
    curpos[x - 1] = 0;
39
  }
39
  }
40
}
40
}
41
 
41
 
42
 
42
 
43
/* converts a string to all lowercase */
-
 
44
void strtolower(char *mystring) {
-
 
45
  int x;
-
 
46
  for (x = 0; mystring[x] != 0; x++) mystring[x] = tolower(mystring[x]);
-
 
47
}
-
 
48
 
-
 
49
 
-
 
50
/* Find the first occurrence of find in s, ignore case. */
43
/* Find the first occurrence of find in s, ignore case. */
51
char *fdnpkg_strcasestr(const char *s, const char *find) {
44
char *fdnpkg_strcasestr(const char *s, const char *find) {
52
  char c, sc;
45
  char c, sc;
53
  size_t len;
46
  size_t len;
54
  if ((c = *find++) != 0) {
47
  if ((c = *find++) != 0) {