C reading (from stdin) stops at 0x1a character

前端 未结 5 541
名媛妹妹
名媛妹妹 2020-12-06 15:39

currently I\'m implementing the Burrows-Wheeler transform (and inverse transform) for raw data (like jpg etc.). When testing on normal data like textfiles no problems occur.

5条回答
  •  醉话见心
    2020-12-06 16:20

    You can use _setmode to convert stdin to binary mode.

    There is also freopen -- see this SO question

提交回复
热议问题