C   41

cpu

Guest on 1st June 2022 01:29:41 AM

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "common.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7.     if (argc != 2) {
  8.         fprintf(stderr, "usage: cpu <string>\n");
  9.         exit(1);
  10.     }
  11.     char *str = argv[1];
  12.  
  13.     while (1) {
  14.         printf("%s\n", str);
  15.         Spin(1);
  16.     }
  17.     return 0;
  18. }

Raw Paste


Login or Register to edit or fork this paste. It's free.