Skip to content
stclibPublic

About

Single headers for STC

Resources

Stars

8 stars

Watchers

2 watching

Forks

Latest commit

 

History

73 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

stcsingle

Single headers for STC. For use with Compiler Explorer

#define T Vec, float
#include <https://raw.githubusercontent.com/stclib/stcsingle/main/stc/vec.h>
#include <stdio.h>

int main()
{
    Vec vec = {0};
    
    for (c_range(i, 10))
        Vec_push(&vec, i*i);
    
    for (c_each(i, Vec, vec))
        printf("%f\n", *i.ref);

    Vec_drop(&vec);
}

About

Single headers for STC

Resources

Stars

8 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages