COHERENT manpages

This page displays the COHERENT manpage for typedef [Define a new data type].

List of available manpages
Index


typedef -- C Keyword

Define a new data type

typedef  is  a C  facility  that  lets you  define  new  data types.   Such
definitions are always made in terms of existing data types; for example,

    typedef long time_t;

establishes the  data type  time_t, and  defines it to  be equivalent  to a
long.  By convention,  programmer-defined data types are written in capital
letters.

Judicious use of the typedef facility can make programs easier to maintain,
and improve their portability.

See Also

C keyword,
manifest constants,
portability,
storage class
ANSI Standard, §6.5.6