cstring

Lightweight string library for C
git clone git://git.margiolis.net/cstring.git
Log | Files | Refs | README | LICENSE

test_insert.c (236B)


      1 #include <cstring.h>
      2 
      3 // Compilation: gcc test_insert.c -lcstring
      4 
      5 int
      6 main(int argc, char *argv[])
      7 {
      8 	cstring s = cstring_create("HHHHHHEEEEEEEEEEEEEEEEEEEEEYYYYYYYYYYYYYY");
      9 	printf("%s\n", s.str);
     10 	cstring_delete(&s);
     11 	return (0);
     12 }