A safe file writer api.
Install the library
em list
em install
em build lib
#include "EmeraldsWriteHandler.h"
int main(void) {
char *line = "something random";
EmeraldsWriteHandler *h = write_handler_new();
if(write_handler_open(h, "file.txt")) {
write_handler_write(h, line);
write_handler_write(h, "\n");
}
write_handler_close(h);
}
- Fork it (https://github.com/Oblivious-Oblivious/EmeraldsWriteHandler/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