sc/thread/thread_example.c
Tezc 42383fd590
thread & url (#3)
* thread & url

* fix cirrus

* fix thread

* fix thread

* split actions

* test

* fix test

* fix windows thread

* cond & fail-fast
2020-11-16 03:58:37 +03:00

20 lines
301 B
C

#include "sc_thread.h"
#include <stdio.h>
void* fn(void* arg)
{
printf("%s \n", (char*) arg);
return arg;
}
int main(int argc, char *argv[])
{
struct sc_thread thread;
sc_thread_init(&thread);
sc_thread_start(&thread, fn, "first");
sc_thread_term(&thread);
return 0;
}