Stddef.h

Stddef.h

stddef.h is a header file in the standard library of the C programming language which defines the macro NULL and the types ptrdiff_t, wchar_t, and size_t.

Inclusion

In C, one includes the header file "stddef.h", as in:
#include /* ... */

In C++, one includes the header file "cstddef", as in:
#include // ...

Namespace

The header file "stddef.h" places its definitions in the global scope; the header file "cstddef" places size_t and ptrdiff_t in namespace "std".

NULL

A macro that expands to a null pointer constant.It may be defined as ((void*)0), 0 or 0L depending on the compiler and the language.

Type size_t

The type size_t represents the appropriate type for representing the size of objects of memory areas, and for use in dereferencing the elements of an array. It has an implementation-dependent size; usually, it has a 32-bit representation on 32-bit systems and a 64-bit representation on 64-bit systems. It is unsigned. It has a signed variation, ssize_t, defined in the UNIX header file, "unistd.h".

Type wchar_t

An implementation-specific "wide character" type, which is predefined in the C++ programming language but requires the header "stddef.h" or "wchar.h" in the C programming language.

Type ptrdiff_t

The type ptrdiff_t is a type that can hold the result of subtracting two pointers. The underlying type of ptrdiff_t varies from implementation to implementation.

External references

* [http://www.opengroup.org/pubs/online/7908799/xsh/stddef.h.html stddef.h] on The Open Group
* [http://www.cplusplus.com/reference/clibrary/cstddef/ stddef.h] on CPlusPlus.com
* [http://msdn2.microsoft.com/en-us/library/2b6eh9x3(VS.80).aspx cstddef] on MSDN


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Stddef.h — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h stdint.h stdio.h stdlib.h …   Википедия

  • stddef.h — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h s …   Википедия

  • Standard C Library — Die Standard C Library ist eine genormte Funktionsbibliothek für die Programmiersprache C, die etwa 200 häufig benötigte Funktionen für Ein und Ausgabe, mathematische Operationen, Verarbeitung von Zeichenketten, Speicherverwaltung und andere… …   Deutsch Wikipedia

  • stdlib.h — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h stdint.h …   Википедия

  • Stdlib.h — заголовок (заголовочный файл) стандартной библиотеки общего назначения языка Си, который содержит в себе функции, занимающиеся выделением памяти, контроль процесса выполнения программы, преобразования типов и другие. Заголовок вполне совместим с… …   Википедия

  • Stdlib.h — is the header of the general purpose standard library of C programming language which includes functions involving memory allocation, process control, conversions and others. It is compatible with C++ and is known as cstdlib in C++. The name… …   Wikipedia

  • Funciones de la biblioteca estándar de C — Anexo:Funciones de la biblioteca estándar de C Saltar a navegación, búsqueda El propósito de este artículo es proporcionar un listado alfabético de todas las funciones de la biblioteca estándar de C, y unas pocas funciones no estándar. Contenido… …   Wikipedia Español

  • Циклический избыточный код — Эта статья  о коде. О методе мозгового штурма см. CRC карта. Циклический избыточный код (англ. Cyclic redundancy check, CRC[1])  алгоритм вычисления контрольной суммы, предназначенный для проверки целостности… …   Википедия

  • Стандартная библиотека языка Си — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h …   Википедия

  • Anexo:Funciones de la biblioteca estándar de C — El propósito de este artículo es proporcionar un listado alfabético de todas las funciones de la biblioteca estándar de C, y unas pocas funciones no estándar. Contenido 1 assert.h 2 ctype.h 3 errno.h 4 float.h …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”