View Single Post
Old 08-20-2002, 06:59 AM   #9 (permalink)
kenshi
Registered User
 
kenshi's Avatar
 
Join Date: Jun 2002
Location: Antarctica
Posts: 43
kenshi is on a distinguished road
Send a message via ICQ to kenshi
Getting down to the assembler level, ANSI declares that functions will return their values through the eax, ax, or al register, depending on the size of the data. But obviously some functions don't return data. The keywords before the function name tell it how much it will be returning. Void means it's not returning anything, and the contents of eax will be unpredictable. (Though someone earlier said some compilers make void functions return 0, hence eax would contain 0.)
kenshi is offline   Reply With Quote