Section courante

A propos

Section administrative du site

Voici les types de données élémentaires qu'utilise l'API du C pour pour le système d'exploitation OS/2 :

Type de l'API d'OS/2 Type du C standard Taille en octet Taille en bits Valeur autorisé
BYTE unsigned char 1 8 0 à 255
UCHAR unsigned char 1 8 0 à 255
CHAR char 1 8 -128 à 127
enum enum 2 16 -32 768 à 32 767
USHORT unsigned short 2 16 0 à 65 535
UINT unsigned int 2 16 0 à 65 535
SHORT short 2 16 -32 768 à 32 767
INT int 2 16 -32 768 à 32 767
BOOL unsigned long 4 32 0 à 4 294 967 295
ULONG unsigned long 4 32 0 à 4 294 967 295
HDC unsigned long 4 32 0 à 4 294 967 295
HWND unsigned long 4 32 0 à 4 294 967 295
LONG long 4 32 -2 147 483 648 à 2 147 483 647
float float 4 32 3.4E-38 à 3.4E+38
double double 8 64 1.7E-308 à 1.7E+308
pointer pointer 2 16 Pointeur court (Near pointer): Offset entre 0 à 65 535
pointer pointer 4 32 Pointeur long (Far ou huge pointer)
PBYTE BYTE * 4 32 Pointeur long sur une valeur naturel entre 0 et 255 (Far ou huge pointer)
PCHAR char * 4 32 Pointeur long sur une chaine de caractères (Far ou huge pointer)
PSZ char * 4 32 Pointeur long sur une chaine de caractères (Far ou huge pointer)
PINT int * 4 32 Pointeur long sur une valeur entière (Far ou huge pointer)
PLONG long * 4 32 Pointeur long sur une valeur entière longue (Far ou huge pointer)
VOID void     Sans type

Voir également

Système d'exploitation - OS/2 - Introduction

Dernière mise à jour : Vendredi, le 3 avril 2015