Created
October 25, 2012 16:22
-
-
Save blake41/3953797 to your computer and use it in GitHub Desktop.
bstring sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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