Is size_t only in C ++ standard or C standard?
I cannot find the C header in the "/ usr / include" tree that defines size_t.
If it's not in C std, does GCC just do some magic to make things work?
Thanks Chenz
From draft C99:
7.17 General definitions <stddef.h>
<stddef.h>
The <stddef.h>following types and macros are defined in the standard header . Some are also defined in other headings, as indicated in their respective subclauses.
Types: [-snip -]
size_t
which is an unsigned integer type of the operator result sizeof; [-snip -]
sizeof
size_t <stddef.h>, <stdlib.h>
<stdlib.h>
size_t C
#include <stddef.h> //For C #include <cstddef> //For C++
$grep -R -P "typedef.*\s+size_t;" /usr/include/ 2> /dev/null
grep -R -P "typedef.*\s+size_t;" /usr/include/ 2> /dev/null
will give you a list of files that define size_t
size_t is in stdlib.h for C (or cstdlib.h in C ++).
It is defined in string.h in ansi c.
Source: https://habr.com/ru/post/1739189/More articles:Error loading Windows Azure DownloadOptream EOF - azureProblems impersonating and releasing .NET files - .netPHP - HTML generator / manager search - htmlOpenID integration in symfony 1.4? - phphiding exectables using ADS (alternative data streams) - c ++where can I get a tutorial for using the visual studio installer - installerHow to show dropdown menu in combo box in WPF? - wpfWhat is the Silverlight code for dashes "-" - silverlightКак получить идентификатор EditorFor с вложенными режимами просмотра в asp.net mvc 2 - asp.netHow to make svn diff look like diff? - svnAll Articles