12 lines
432 B
C
12 lines
432 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
void labashka(unsigned short (*pop)(void), void (*push)(unsigned short), size_t (*len)(void), size_t max_size ) {
|
||
|
FILE *file = NULL;
|
||
|
file = (void*)((size_t)(pop()) << (16*0) | (size_t)file);
|
||
|
file = (void*)((size_t)(pop()) << (16*1) | (size_t)file);
|
||
|
file = (void*)((size_t)(pop()) << (16*2) | (size_t)file);
|
||
|
file = (void*)((size_t)(pop()) << (16*3) | (size_t)file);
|
||
|
push(fgetc(file));
|
||
|
}
|