Tuesday, December 11, 2007

C99

There are some features defined by C99:

1.set initial values when allocate new data structure variable
typedef struct humanInfo_s {
char *name;
int age;
}humanInfo_t;

humanInfo obj = {.name="YUNG"};
2. Variable Declarations does not limit on the top of the function body.

3. inline function.

There some many defines in C99 , but I do not list it.
FYI:
ISO/IEC JTC1/SSC22/WG14-C

No comments: