« 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
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.