More documentation and Cisco support.

FossilOrigin-Name: 0a22e4c44b2df5712b2f8edaea0712fcc7fc0ca953e86179c0a653a484197a43
This commit is contained in:
7u83@mail.ru
2015-03-15 19:53:21 +00:00
parent 93ba625c7a
commit b5bacff6a3
32 changed files with 400 additions and 96 deletions

View File

@ -16,11 +16,24 @@
*/
/**
* @file
* @brief
*/
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
/**
* Creates a bstr_t string.
* @param data source data to create the string from
* @param len length of the string
* @return the created bstr_t string.
*
* The bstr_t string returned is allocated by malloc. So remember to free
* this resource if you don't need it anymore.
*/
uint8_t * bstr_create(uint8_t *data, uint8_t len)
{
uint8_t * str = malloc(len*sizeof(uint8_t));