mirror of https://github.com/ossrs/srs.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
308 B
C++
20 lines
308 B
C++
11 months ago
|
/*
|
||
|
g++ hello-world.cpp ../../objs/st/libst.a -g -O0 -o hello-world && ./hello-world
|
||
|
*/
|
||
|
#include <stdio.h>
|
||
|
#include "../../objs/st/st.h"
|
||
|
|
||
|
void foo() {
|
||
|
st_init();
|
||
|
|
||
|
for (int i = 0; ; i++) {
|
||
|
st_sleep(1);
|
||
|
printf("#%d: main: working\n", i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
foo();
|
||
|
return 0;
|
||
|
}
|