~slendi/btc

Hopefully fix MSVC compat

Signed-off-by: Slendi <slendi@socopon.com>
Cast strlen

Signed-off-by: Slendi <slendi@socopon.com>
Add C++ support

Signed-off-by: Slendi <slendi@socopon.com>
Fix indentation for append_vector function

Signed-off-by: Slendi <slendi@socopon.com>
Add string_t helper functions.

Those are:
 - new_string: Duplicate a cstring into a string.
 - create_string: Make a string_t that points to a cstring.
 - substring: Get a subscring.
 - compare_strings: Compare strings using strncmp.
 - cstring_from_string: A function that safely alloacates a cstring from
   a string.

Signed-off-by: Slendi <slendi@socopon.com>
Add length-terminated string

Signed-off-by: Slendi <slendi@socopon.com>
Initial commit

Signed-off-by: Slendi <slendi@socopon.com>
Do not follow this link