Where is c++ size_t defined in linux

后端 未结 5 2069
你的背包
你的背包 2020-12-31 06:22

Now I\'m talking about new type definition by a programmer using typedef keyword. As long as my pupils are used to the type size_t (for example by using function length ()),

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 06:50

    You can try to expand standard include files with the C preprocessor (cpp) by hand and check the output of that:

    $ echo '#include ' | cpp -I/usr/include - > stdlib-expanded.c
    

    You will find that the output of cpp even includes markers to indicate from which files the code in stdlib-expanded.c has been included.

提交回复
热议问题