#include "b.h" #include "uart.h" int bCopy(const U8 *s,U8 *d,U32 cnt) { //com1 << "bCopy(" << ((U32)s) << "," << ((U32)d) << "," << ((U32)cnt) << ")\r\n"; while(cnt--) { *d=*s; s++; d++; } return 0; } int bCopyLong(const U32 *s,U32 *d,U32 cnt) { while(cnt--) { *d=*s; s++; d++; } return 0; } int bCmp(const U8 *l,const U8 *r,U32 cnt) { while(cnt--) { if(*l!=*r) return *l<*r ? -1:1; l++; r++; } return 0; } int bFill(U8 *l,U8 c,U32 cnt) { while(cnt--) { *l++=c; } return 0; }