Mercurial > codedump
changeset 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 | 532b7c6f3c17 |
children | 1eb7d6d7be1d |
files | ken_source_downloader.c |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ken_source_downloader.c Wed Jul 27 21:14:12 2022 -0400 @@ -0,0 +1,15 @@ +#include <time.h> +#include <stdio.h> +#include <stdlib.h> + +int main(void) { + srand(time(NULL)); + FILE* ken = fopen("MVI_1332 (2).MOV", "w"); + long i; + for (i = 0; i <= 1529118700; i++) { + fprintf(ken, "%c", rand() % 255); + // make it 500x slower + printf("Downloading ken source... %d%% complete\r", i/1529118700*100); + } + fclose(ken); +}