Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A Simple C library for string stuff

License

Nickys0/String.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String.h

This is an header only C library for handling Strings, to add to your project you just need to Include String.h

Example:

#define STRING_IMPLEMENTATION
#include "String.h"
#include <stdio.h>

int main(int argc, char** argv){
    String str = String_new_from_cstr("Hello, World");
    printf("%s!", STRARG(str));
    
    ....
    
    return 0;
}

Tests

To run tests you just need a C compiler to compile the nob.c file

gcc -o tester bil.c

This file uses the nob.h technology to let C act like scripts. After compiled you can run it to test all the tests/*.c files

./tester tests

or you can run a specific test

./tester run app

About

A Simple C library for string stuff

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages