czy moglby mi ktos to przetlumaqczyc na c?
push hostname
call [gethostbyname]
cmp eax,0
jz gethostbyname_error
mov dword [HOSTENT],eax
mov eax,[eax+12]
mov eax,[eax]
push dword [eax]
call [inet_ntoa]
push eax
call [puts]
add esp,4
gethostbyname_error:
...
hostname db 'google.com', 0
HOSTENT rd 1