helloworld.c 318 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: MIT */
  2. /* Copyright (c) 2013-2024 The SRS Authors */
  3. #include <stdio.h>
  4. #include <st.h>
  5. int main(int argc, char** argv)
  6. {
  7. st_init();
  8. int i;
  9. for (i = 0; i < 10000; i++) {
  10. printf("#%03d, Hello, state-threads world!\n", i);
  11. st_sleep(1);
  12. }
  13. return 0;
  14. }