Re: exit ou return

Inizio della pagina

Reply to this message
Autore: Raphael Manfredi
Data:  
To: guilde
Nuovi argomenti: Re: exit ou return - Fin
Oggetto: Re: exit ou return
Quoting fanchon@???:
:D'apres le bouquin sur lequel je viens de verifier, quand main() sort sur
:un return, exit() est appelee, donc je ne vois pas bien la difference
:entre return value; et exit(value);

Tu l'as dit toi meme...

Quand tu appelles exit(value), tu appelles exit(value).
Quand tu executes return value, "on" appelle exit(value) pour toi.

Le "on", c'est crt0.s bien sur.

Raphael