Skip to main content
correção
Fonte Link
FILE* controlador, snes;
char input;

controlador = fopen("/dev/rfcomm0", "rb");
snes = fopen("/dev/snes9x", "rb""a");

while(controlador) {
     input = fgetc(fpcontrolador);
     if(snes)
         fputc(input, snes);

}
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);

}
FILE* controlador, snes;
char input;

controlador = fopen("/dev/rfcomm0", "rb");
snes = fopen("/dev/snes9x", "a");

while(controlador) {
     input = fgetc(controlador);
     if(snes)
         fputc(input, snes);

}
adicionou 4 caracteres ao conteúdo
Fonte Link
Jefferson Quesado
  • 23,5mil
  • 6
  • 60
  • 158
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); 

}

}

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);

}

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); 

}
Fonte Link

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);

}