creal, crealf, creall − den Realteil einer komplexen Zahl bestimmen
#include <complex.h>
double creal(double complex z);
float crealf(float complex z);
long double creall(long double complex z);
Mit der Option −lm linken.
Die Funktion creal() gibt den Realteil einer komplexen Zahl z zurück.
Es ergibt sich z = creal(z) + I*cimag(z).
Der gcc unterstützt auch __real__. Dies ist eine GNU-Erweiterung.
C99