Prosoft-technology MVI69-ADMNET Uživatelský manuál Strana 112

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 122
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 111
WATTCP API Functions MVI-ADMNET 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module with Ethernet
Page 112 of 122 ProSoft Technology, Inc.
February 20, 2013
inet_ntoa
Syntax
Char * inet_ntoa( char *String, longword IP );
Parameters
String
Array of character string.
IP
Decimal representation of IP address.
Description
This function builds ASCII representation of an IP address with a user supply
string from decimal representation of the IP address. The size of the buffer has to
be at least 16 byte.
Return Value
Pointer to the new string.
Example
char buffer[ 20 ];
sock_init();
printf("My IP address is %s\n", inet_ntoa( buffer, gethostid()));
Zobrazit stránku 111
1 2 ... 107 108 109 110 111 112 113 114 115 116 117 ... 121 122

Komentáře k této Příručce

Žádné komentáře