2014/04/10
FILE* fileno2FILE(int fileno) { switch(fileno) { case 0: return stdin; case 1: return stdout; case 2: return stderr; default: return NULL; } }
By Guo-Zhao Wang