Mercurial > codedump
comparison ken_source_downloader.c @ 83:05803e046878
Create ken_source_downloader.c
committer: GitHub <noreply@github.com>
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
|---|---|
| date | Wed, 27 Jul 2022 21:14:12 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 82:532b7c6f3c17 | 83:05803e046878 |
|---|---|
| 1 #include <time.h> | |
| 2 #include <stdio.h> | |
| 3 #include <stdlib.h> | |
| 4 | |
| 5 int main(void) { | |
| 6 srand(time(NULL)); | |
| 7 FILE* ken = fopen("MVI_1332 (2).MOV", "w"); | |
| 8 long i; | |
| 9 for (i = 0; i <= 1529118700; i++) { | |
| 10 fprintf(ken, "%c", rand() % 255); | |
| 11 // make it 500x slower | |
| 12 printf("Downloading ken source... %d%% complete\r", i/1529118700*100); | |
| 13 } | |
| 14 fclose(ken); | |
| 15 } |
