Home  >  Q&A  >  body text

linux - fclose(stdout), how to open stdout again???

Just like the title. Thank you in advance.

高洛峰高洛峰2664 days ago1157

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-06 09:54:35

    Try it

    stdout = fopen("/dev/tty", "w")

    reply
    0
  • Cancelreply