Тип стандартный - результат операции sizeof
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено smav 06 апреля 2005 г. 15:25
В ответ на: Подскажите а что в ИАРе за тип такой size_t и где определяется? отправлено Новичек 06 апреля 2005 г. 14:41

Должен быть определен в stddef.h
Однако часто в stddef.h включаются другие файлы, так что надо искать.
Там еще бывают условные трансляции.

Вот кусочек стандарта 1999года:
The following types and macros are dfined in the standard header stddef.h. Some
are also defined in other headers, as noted in their respective subclauses.
2 The types are
ptrdiff_t
which is the signed integer type of the result of subtracting two pointers;
size_t
which is the unsigned integer type of the result of the sizeof operator; and
wchar_t
which is an integer type whose range of values can represent distinct codes for all
members of the largest extended character set specified among the supported locales; the
null character shall have the code value zero and each member of the basic character set
shall have a code value equal to its value when used as the lone character in an integer
character constant.

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru