Re: inet_ntoa( ) linux
- Posted by Bernie <xotron at PCOM.NET> Nov 24, 2000
- 380 views
On Thu, 23 Nov 2000 21:35:28 -0700, cense <cense at MAIL.RU> wrote: cense: This is the correct code. -- Define ALL of your STATIC function,variable, or structure at the beginning -- of your program outside of your functions. -- STATIC means that a function,variable, or structure needs to be available -- through out the scope of your whole program any function or variable -- defined within a function is will be destroy when you leave the function. -- include mixedlib.e inet_ntoa_ = define_c_func(YOUR_LIB, "inet_ntoa",{C_POINTER}, C_POINTER) -- internet numeric to ascii function -- This function takes a 4 byte POINTER to a in_addr and converts -- the internet HOST numeric address to a STRING in the standard number/dots -- notation form. global function inet_ntoa( pointer sin_addr ) -- return str2seq( c_func( inet_ntoa_, { sin_addr_ptr } ) ) -- end function Bernie