Forum > Other

Winsock and OS/2 Strange Issue

<< < (4/4)

Thaddy:
What is this then:
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$mode objfpc}uses sockets; function inet_ntoa (const inaddr:longint):string;inline;overload;var addr:in_addr;begin  addr.s_addr :=  inaddr;  Result:=NetAddrToStr(addr);end; function inet_ntoa (const inaddr:in_addr):string;inline;overload;begin  Result:=NetAddrToStr(inaddr);end; begin writeln(inet_ntoa(16777343));end. This should work on the OS/2 family too, just with FPC provided sockets units.

Navigation

[0] Message Index

[*] Previous page

Go to full version