Return to the RPG Tips
inet_addr API question
Here is what I used and it works just fine. D TcpAddr 16a inz('10.1.1.0') *--------------------------------------------------------- * Prototype for InetAddr(). *--------------------------------------------------------- D InetAddr PR 10i 0 ExtProc('inet_addr') D 16a C EVAL SocketId = %Trim(TcpAddr) + x'00' C EVAL rc =inetaddr(SocketId)
[report a broken link by clicking here]