Metrologic Optimus S Programming Manual page 94

"c" programming guide
Table of Contents

Advertisement

88
"C" Programming Guide For Optimus S/R
putchar
type (required)
Flags
-
+
blank
#
Type
c
d
i
o
u
x
X
s
Return
It returns the character count that sent to the LCD.
Purpose
To display a character on the LCD.
int putchar (int c);
Syntax
int c;
Example
putchar ('A');
Description
This routine sends a character specified in the argument c to the LCD at the
current cursor position. The cursor is moved accordingly.
Return
It always returns 1.
See Also
puts
A letter that indicates the type of variable being printed
(see below).
Meaning
Left justify output value. The default is right justification.
If the output value is a numerical one, print a '+' or '-' character
according to the sign of the value. A '-' character is always printed
for a negative value no matter this flag is specified or not.
Positive numerical values are prefixed with blank spaces. This flag
is ignored if the + flag also appears.
When used in printing variables of type o, x, or X (see below),
non-zero output values are prefixed with 0, 0x, or 0X respectively.
Expected Input
Single character
Signed decimal integer
Signed decimal integer
Octal digits without sign
Unsigned decimal integer
Hexadecimal digits using lower case letter
Hexadecimal digits using upper case letter
A null terminated character string
/* character being sent to the LCD */

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents