trio_scanf, trio_vscanf, trio_fscanf, trio_vfscanf, trio_dscanf, trio_vdscanf, trio_sscanf, trio_vsscanf - formatted input conversion
cc ... -ltrio -lm
int trio_scanf(const char *format, ...);
This documentation is incomplete. The documentation of the scanf family in [C99] and [UNIX98] also applies to the trio counterparts.
The scanning is controlled by the format string. The format string can contain normal text and conversion indicators. The normal text can be any character except the nil character (ASCII 000 = '0') and the percent character (ASCII 045 = '%'). Conversion indicators consists of an indication character (%), followed by zero or more conversion modifiers, and exactly one conversion specifier.
Positional (9$) [UNIX98]
Floating-point (a, e, E, f, F, g, G)
Hex (x, X)
Range (-) [TRIO]
* Only increasing ranges, i.e. [a-b], but not [b-a].
* Transitive ranges, ie. [a-b-c] equals [a-c].
* Trailing minus, ie. [a-] is interpreted as an 'a' and a '-'.
* Duplicates are ignored.
Class Expression (::) [TRIO]
:alnum: :alpha: and :digit:
:alpha: :lower: and :upper:
:cntrl: Control characters
:digit: Decimal digits
:graph: Printable characters except space
:lower: Lower case alphabetic letters
:print: Printable characters
:space: Whitespace characters
:upper: Upper case alphabetic letters
:xdigit: Hexadecimal digits
See the description of trio_printf (3).
Copyright (C) 1998-2000 Bjorn Reese and Daniel Stenberg.
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
This HTML page was made with roffit.
Web page edited by daniel at haxx.se, modified April 05, 2005