I have one question,studying standard I/O.
#include <stdio.h>
int main(){
void *mem = malloc(0x80);
close(0)
/*
something code (solution)
*/
read(0,mem,0x80);
}
with above code, Is possible opening stdin ? before ask question on stackoverflow, i thought that open('/dev/tty'); . but it not seem to completely open stdin. i hope that do not use dup()