« Reply #15 on: February 15, 2024, 04:36:06 pm »
What is this then:
{$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.
« Last Edit: February 15, 2024, 04:40:25 pm by Thaddy »

Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.