Query: typeof
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TYPEOF(3) BSD Library Functions Manual TYPEOF(3)NAMEtypeof -- GNU extension for type of an expressionSYNOPSIStype typeof(expression);DESCRIPTIONThe typeof() construct can be used to obtain the type of an expression. The syntax is comparable to that of sizeof(), but semantically typeof() operates like a type name defined with typedef.EXAMPLESThe following is a typical example of a type-generic macro: #define MAX(a, b) ({ typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; })SEE ALSOgcc(1), __alignof__(3), attribute(3), offsetof(3)CAVEATSThe typeof() construct is a non-standard, compiler-specific extension.BSDDecember 19, 2010 BSD
Related Man Pages |
---|
__builtin_object_size(3) - netbsd |
__builtin_constant_p(3) - netbsd |
offsetof(3) - debian |
__builtin_frame_address(3) - netbsd |
__builtin_types_compatible_p(3) - netbsd |
Similar Topics in the Unix Linux Community |
---|
Problem with Mail merge in perl |
Transpose info that is within blocks |
Dynamically enumerating the members of a C++ struct |
Create csv from text file |
Navbar Temple: Table To Div (Changes) |