Rev 4001 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4001 | Rev 6825 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | } |
68 | } |
69 | 69 | ||
Line 70... | Line 70... | ||
70 | } |
70 | } |
Line -... | Line 71... | ||
- | 71 | ||
- | 72 | int strnicmp(const char* string1, const char* string2, unsigned count) |
|
- | 73 | { |
|
- | 74 | int pc = 0; |
|
- | 75 | while (1) |
|
- | 76 | { |
|
- | 77 | if (toupper(*string1) |
|
- | 78 | return -1; |
|
- | 79 | if (toupper(*string1)>toupper(*string2)) |
|
- | 80 | return 1; |
|
- | 81 | ||
- | 82 | if (*string1=='\0' || pc == count) |
|
- | 83 | return 0; |
|
- | 84 | ||
- | 85 | string1++; |
|
- | 86 | string2++; |
|
- | 87 | pc++; |
|
- | 88 | } |
|
Line 71... | Line 89... | ||
71 | 89 | } |
|
72 | 90 | ||
73 | void strcpy(char strDest[], const char strSource[]) |
91 | void strcpy(char strDest[], const char strSource[]) |