project_files/hwc/rtl/misc.c
changeset 14262 8c76c0a35fb1
parent 14261 73d514c0bdf5
child 15297 70d416a8f63f
equal deleted inserted replaced
14261:73d514c0bdf5 14262:8c76c0a35fb1
   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){