ProSoft Technology MVI69-ADMNET User Manual

Page 109

Advertising
background image

MVI-ADMNET ♦ 'C' Programmable

WATTCP API Functions

'C' Programmable Application Development Module with Ethernet

Developer's Guide

ProSoft Technology, Inc.

Page 109 of 122

February 20, 2013

sock_getc

Syntax

int sock_getc( sock_type *skType);

Parameters

skType

Socket that will be used to get string data from.

Description
This function gets one character at a time from the socket.

Return Value
Character read in is returned.

Example

sock_type *socket;
char in;

. . .


in = sock_getc(socket);
printf("%c", in);

See Also
sock_gets (page 108)

Advertising