Skip to content

Instantly share code, notes, and snippets.

@blake41
Created October 25, 2012 16:22
Show Gist options
  • Save blake41/3953797 to your computer and use it in GitHub Desktop.
Save blake41/3953797 to your computer and use it in GitHub Desktop.
bstring sample
#include "bstrlib.h"
#include <stdio.h>
#include <stdint.h>
int main(int argc, char const *argv[])
{
char *string = "blake johnson";
bstring my_bstring = (bstring)string;
int length = blength(my_bstring);
char *new_string = bdata(my_bstring);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment