new type cw_type_str

FossilOrigin-Name: 4ed9b74635d04e6691d964a6a5503be3f878591d5d23ec62d4a5e5e93933fc03
This commit is contained in:
7u83@mail.ru
2018-03-31 22:49:05 +00:00
parent b5a0e21141
commit 8910504b4b
6 changed files with 96 additions and 15 deletions

View File

@ -27,16 +27,6 @@ int lw_put_bstr16(uint8_t * dst, const bstr16_t b){
}
/**
* Put a string to an output buffer
* @param dst Output buffer
* @param str zero-terminated string to put
* @return number of bytes put
*/
int lw_put_str(uint8_t*dst,const uint8_t *str) {
return lw_put_data(dst,str,strlen((char*)str));
}
int lw_put_elem_hdr(uint8_t *dst,uint8_t type,uint16_t len)
{