C read binary stdin

前端 未结 8 2209
难免孤独
难免孤独 2020-11-30 04:51

I\'m trying to build an instruction pipeline simulator and I\'m having a lot of trouble getting started. What I need to do is read binary from stdin, and then store it in me

8条回答
  •  悲&欢浪女
    2020-11-30 05:37

    fread() suits best for reading binary data.

    Yes, char array is OK, if you are planning to process them bytewise.

提交回复
热议问题