fork download
  1. #include <stdio.h>
  2. #include <errno.h>
  3. #include <string.h>
  4. int main (void)
  5. {
  6. char *cp;
  7. fprintf (stdin, "Ciao amore!\n");
  8. if (ferror (stdin))
  9. {
  10. cp = strerror (errno);
  11. fprintf (stderr, "Attenzione: %s\n", cp);
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 1716KB
stdin
Standard input is empty
stdout
Standard output is empty