Inital commit

FossilOrigin-Name: 39e7097bc6ff122072d11fd7d282ec9624a223313d12f944dbca3e50e3676cba
This commit is contained in:
7u83@mail.ru
2015-01-31 11:21:32 +00:00
parent 3b7af3d47e
commit ce5a7b990d
2 changed files with 77 additions and 0 deletions

12
src/capwap/bstr_replace.c Normal file
View File

@ -0,0 +1,12 @@
#include <stdlib.h>
#include "bstr.h"
uint8_t * bstr_replace( uint8_t ** str, uint8_t * data, int len)
{
if (str)
free(str);
*str = bstr_create(data,len);
return *str;
}