Portable data reinterpretation

前端 未结 5 983
温柔的废话
温柔的废话 2020-11-30 09:28

I want to reinterpret data of one type as another type in a portable way (C99). I am not talking about casting, I want a reinterpretation of some given dat

5条回答
  •  -上瘾入骨i
    2020-11-30 09:29

    to be safe, I'd go with with a byte array (unsigned char) rather than an 'int' to hold the value.

提交回复
热议问题