2015-01-31 12:21:32 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "bstr.h"
|
|
|
|
|
2015-03-15 20:53:21 +01:00
|
|
|
uint8_t * bstr_replace( bstr_t * dst, uint8_t * bstr)
|
2015-01-31 12:21:32 +01:00
|
|
|
{
|
2015-01-31 12:29:27 +01:00
|
|
|
if (*dst)
|
|
|
|
free(*dst);
|
|
|
|
|
|
|
|
*dst = bstr;
|
|
|
|
return *dst;
|
2015-01-31 12:21:32 +01:00
|
|
|
}
|