equal
deleted
inserted
replaced
106 return result; |
106 return result; |
107 } |
107 } |
108 |
108 |
109 bool fpcrtl_strcompare(string255 str1, string255 str2) |
109 bool fpcrtl_strcompare(string255 str1, string255 str2) |
110 { |
110 { |
111 return memcmp(str1.str, str2.str, str1.len) == 0; |
111 return memcmp(str1.s, str2.s, str1.len + 1) == 0; |
112 } |
112 } |
113 |
113 |
114 bool fpcrtl_strcomparec(string255 a, char b) |
114 bool fpcrtl_strcomparec(string255 a, char b) |
115 { |
115 { |
116 if(a.len == 1 && a.str[0] == b){ |
116 if(a.len == 1 && a.str[0] == b){ |