Skip to content

Oblivious-Oblivious/EmeraldsStringBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmeraldsStringBuilder

A dynamic string builder using a linked list for allocations.

Installation

  • Install the library

em list

em install

em build lib

Usage

#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);
}

Contributing

  1. Fork it (https://github.com/Oblivious-Oblivious/EmeraldsStringBuilder/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

A string builder using linked lists.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages