I'm looking at some code and a call to htons ( it's implied that you know what this does :) ) the return value is stored in ax.

Heh, the code works so I'm guessing that this is correct, my question is how can I determine what register function/proc/methods place their return value? Is there some type of reference?

Thanks for any help,
Posted on 2002-06-05 14:47:16 by gorshing
all windows api functions return a value in eax. Because htons returns a 16 bit number then only ax has meaning.
Posted on 2002-06-05 14:53:19 by Kudos