A dynamic string builder using a linked list for allocations.
- Install the library
em list
em install
em build lib
#include "EmeraldsStringBuilder.h"
int main(void) {
char *sb_p = NULL;
EmeraldsStringBuilder *sb = string_new("initial");
string_builder_addf(sb, "%s,%s", "Hello, ", "World!");
printf("%s\n", (sb_p = string_get(sb)));
free(sb_p);
}
- Fork it (https://github.com/Oblivious-Oblivious/EmeraldsStringBuilder/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- oblivious - creator and maintainer