Where is stdbool.h?

后端 未结 6 1874
温柔的废话
温柔的废话 2020-12-28 15:42

I want to find the _Bool definition on my system, so for systems where it\'s missing I can implement it. I\'ve seen various definitions for it here and on other

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 16:15

    Other people have replied to the question on _Bool location and finding if C99 is declared... however, I am not satisfied with the self-made declaration everyone gave.

    Why won't you completely define the type?

    typedef enum { false, true } bool;
    

提交回复
热议问题