project_files/hwc/rtl/misc.c
changeset 10242 0ab0d7fa1c62
parent 10241 2dc9ff47c5b9
child 11652 09ebdfe364d9
equal deleted inserted replaced
10241:2dc9ff47c5b9 10242:0ab0d7fa1c62
   125     return !fpcrtl_strcompare(a, b);
   125     return !fpcrtl_strcompare(a, b);
   126 }
   126 }
   127 
   127 
   128 bool fpcrtl_strncompareA(astring a, astring b)
   128 bool fpcrtl_strncompareA(astring a, astring b)
   129 {
   129 {
   130     return (a.len != b.len) || (memcmp(a.s, b.s, a.len + 1) != 0);
   130     return (a.len != b.len) || (memcmp(a.s, b.s, a.len) != 0);
   131 }
   131 }
   132 
   132 
   133 
   133 
   134 string255 fpcrtl_pchar2str(const char *s)
   134 string255 fpcrtl_pchar2str(const char *s)
   135 {
   135 {