I use NASM under Windows,and in my asm I want to call C runtime function printf, like this
'push msg
call _printf
add esp, 4`
But when program run, it does not call printf function but another fuction.If code like this:
push msg
mov eax, _printf
call eax
add esp, 4
It works well.Why?
Thanks!