char* apply_function(int fonc,arg* argu,int nbArg){ switch(fonc){ case 1: return plus(argu,nbArg); break; case 2: return moins(argu,nbArg); break; case 3: return multiplie(argu,nbArg); break; case 4: return divise(argu,nbArg); break; case 5: return concat(argu,nbArg); break; case 6: return boucle(); break; default: return NULL; //TODO renvoyer erreur break; } }
t_cpx inverse(t_cpx a) { t_cpx tp; tp.re = 1; tp.im = 0; return (divise(tp, a)); }