What are the usage differences between size_t and off_t?

前端 未结 3 371
無奈伤痛
無奈伤痛 2021-02-01 01:40

Other than the size of the values that each type can hold, what are the main differences in usage between size_t and off_t? Is it just

3条回答
  •  臣服心动
    2021-02-01 02:23

    size_t is part of the C++ (and C) standards, and refers to the type of a sizeof expression. off_t is defined by the Posix standard, and refers to the size of a file.

提交回复
热议问题