Rev 1314 | Rev 1485 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1314 | Rev 1319 | ||
---|---|---|---|
Line 64... | Line 64... | ||
64 | } |
64 | } |
65 | 65 | ||
66 | return counter; |
66 | return counter; |
67 | } |
67 | } |
68 | 68 | ||
- | 69 | int strcmp(const char *a,const char *b) |
|
- | 70 | { |
|
- | 71 | int c=0; |
|
- | 72 | ||
- | 73 | while(a[c]&&b[c]&&(!(a[c]-b[c]))) c++; |
|
- | 74 | ||
- | 75 | return a[c]-b[c]; |
|
- | 76 | ||
- | 77 | } |
|
- | 78 | ||
- | 79 | ||
- | 80 | ||
69 | /** Return pointer to the first occurence of character c in string |
81 | /** Return pointer to the first occurence of character c in string |
70 | * @param str scanned string |
82 | * @param str scanned string |
71 | * @param c searched character (taken as one byte) |
83 | * @param c searched character (taken as one byte) |
72 | * @return pointer to the matched character or NULL if it is not found in given string. |
84 | * @return pointer to the matched character or NULL if it is not found in given string. |
73 | */ |
85 | */ |