User manual

905U-G Wireless Gateway User Manual
Page 163 ©September 2004
Character Input data, Argument Type
d Decimal number; byte, short
i Number, byte, short. The number may be in octal (leading 0(zero)) or
hexadecimal (leading 0x or 0X)
o Octal number (with or without leading zero); byte, short
u Unsigned decimal number; unsigned byte, unsigned short
x Hexadecimal number (with or without leading 0x or 0X); byte, short
c Characters; char*. The next input characters (default 1) are placed at the
indicated spot. The normal skip over white space is suppressed; to read the next
non-white space character, use %1s.
s Character string (not quoted); char*, pointing to an array of characters large
enough for the string and a terminating "\0" that will be added.
e, f, g Floating-point number with optional sign, optional decimal point and optional
exponent; float*
% Literal %; no assignment is made.
The conversion characters d, i, o, u and x may be preceded by l (small case L) to
indicate that a pointer to ‘long’ appears in the argument list rather than a ‘byte’ or a
‘short’
The arguments that can be passed to the SSI function scanf are:
Argument Description
OutWriteByte(offset) Writes a byte to position offset in the OUT area
OutWriteWord(offset) Writes a word (short) to position offset in the OUT area
OutWriteLong(offset) Writes a long to position offset in the OUT area
OutWriteString(offset) Writes a string to position offset in the OUT area
OutWriteFlost(offset) Writes a floating point (float) value to position offset in the OUT area
IncludeFile
Syntax: <?--#exec cmd_argument=’IncludeFile( "File name" )’-->
This SSI function includes the contents of a file on a web page.
Default output:
Success - <File content>
Failure - Failed to open <filename>
SaveToFile
Syntax:
<?--#exec cmd_argument=’SaveToFile( "File name", "Separator", [Append|Overwrite] )’-->