ProSoft Technology MVI69-ADMNET User Manual

Page 95

Advertising
background image

MVI-ADMNET ♦ 'C' Programmable

WATTCP API Functions

'C' Programmable Application Development Module with Ethernet

Developer's Guide

ProSoft Technology, Inc.

Page 95 of 122

February 20, 2013

gethostid

Syntax

char *gethostid ( void );

Parameters
None

Description
This function returns value of the IP address in host format.

Return Value
String IP Address.

Example

sock_type *socket;
char *p;

. . .

if(p = gethostid(socket) != NULL)
{
printf("My IP: %s\n", p);
}

Advertising