How to Declare a 32-bit Integer in C

前端 未结 9 2256
日久生厌
日久生厌 2020-12-05 03:53

What\'s the best way to declare an integer type which is always 4 byte on any platforms? I don\'t worry about certain device or old machines which has 16-bit int

9条回答
  •  生来不讨喜
    2020-12-05 04:22

    also depending on your target platforms you can use autotools for your build system

    it will see if stdint.h/inttypes.h exist and if they don't will create appropriate typedefs in a "config.h"

提交回复
热议问题