What is time_t ultimately a typedef to?

后端 未结 10 2063
陌清茗
陌清茗 2020-11-22 08:34

I searched my Linux box and saw this typedef:

typedef __time_t time_t;

But I could not find the __time_t definition.

10条回答
  •  醉酒成梦
    2020-11-22 09:19

    Typically you will find these underlying implementation-specific typedefs for gcc in the bits or asm header directory. For me, it's /usr/include/x86_64-linux-gnu/bits/types.h.

    You can just grep, or use a preprocessor invocation like that suggested by Quassnoi to see which specific header.

提交回复
热议问题