Originally Posted By: Espér
void != function == voids can´t return arguments..

Not quite right, void is simply a signal that the function won't return anything. That doesn't mean that 'return c' wouldn't work, it would still move the content of c into eax and the caller could use the returned argument.

@OP: The thing before the function name is a signal about what the function will return to you, for example you can also have:
Code:
int calc(int a, int b);


Or any other valid data type*

*except of structs, they can't be returned on the stack by Lite-C. However, you don't want to return stuff larger than the word width of the processor for performance reasons!


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com