Defined in header <complex.h> float cimagf( float complex z ); (1) (since C99) double cimag( double complex z ); (2) (since C99) long double cimagl( long double complex z ); (3) (since C99) Defined in header <tgmath.h> #define cimag( z ) (4) (since C99)
1-3) Returns the imaginary part of z.
4) Type-generic macro: if z has type long double complex, long double imaginary, or long double, cimagl is called. If z has type float complex