What is the significance of caddr_t and when is it used?

后端 未结 2 1751
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 13:33

Can somebody please tell me:

  1. What is caddr_t ?
  2. When is it used ?
  3. How it is different from void* ?
  4. When to
2条回答
  •  礼貌的吻别
    2021-01-01 14:15

    caddr_t is a legacy BSD type associated with some low level calls like mmap, and it should never be used in modern code. It was rejected by the POSIX standard. The standardized mmap uses void *.

提交回复
热议问题