FILE* controlador, snes; char input; controlador = fopen("/dev/rfcomm0", "rb"); snes = fopen("/dev/snes9x", "rb"); while(controlador) { input = fgetc(fp); if(snes) fputc(input, snes); }