repl.it
@FuyuWinter/

C | Practicing

C

No description

fork
loading
Files
  • main.c
  • main
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main() {
    while(1) {
        printf("Hello\n");
        test();
    }
}

int test(void) {
    while(1) {
        printf("ha no\n");
        usleep(1 * 1000000);
    }
}

int rest(int count, char *str) {
    char a[count+1];
    memset( a, 0, count+1*count+1*sizeof(int) );
    for(int i = 0; i < count; i++) {
        strcat(a, str);
    }
    printf("%s\n", a);
    return a;
}
Fetching token
?