I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
103
Example: Please refer to “Kbhit()” for an example.
Ungetch()
Function: Put a single character to the input buffer.
Syntax:
int Ungetch(int data);
Header: #include ”7188xa.h”
Description: If there is no data in the input buffer when Ungetch() is
called, next time the Getch() function is called, it will
return the data.
Data: 0 to 255. If the data is > 255, only the low byte will
be sent.
Return:
On success, returns NoError. On error (i.e. the buffer is
full) returns 1.
Example: Please refer to “Kbhit()” for an example of Getch().
Putch()
Function: Displays a single character on the screen.
Syntax:
void Putch(int data);
Header: #include ”7188xa.h”
Description: Data: 0 to 255. If the data is > 255, only the low byte will
be sent.
Example: Please refer to “Kbhit()” for an example.
Puts()
Function: Displays a string on the screen.
Syntax:
void Puts(char *str);
Header: #include ”7188xa.h”
Description: Puts will call Putch() to send the string.
str: The pointer to the string to be sent.
Example: Please refer to “Kbhit()” for an example.
Scanf()
Function: Scans a character from the input and is similar to the
scanf() function. (This function cannot be used with MSC
/VC++)
Syntax:
int Scanf(char *fmt, ...);
Header:
#include ”7188xa.h”
Description: Returns the number of input fields successfully scanned,
Summary of Contents for I-7188XA
Page 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Page 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Page 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Page 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Page 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Page 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Page 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Page 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...