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 ”7188xc.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 ”7188xc.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 ”7188xc.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
”7188xc.h”
Description: Returns the number of input fields successfully scanned,
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
99
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...