|
|
int nl_scanf (format [, pointer...]) char *format;int nl_fscanf (stream, format [, pointer...]) FILE *stream; char *format;
int nl_sscanf (s, format [, pointer...]) char *s, *format;
nl_fscanf- reads from the named input
nl_sscanf- reads from the character string
The functions nl_scanf, nl_fscanf and nl_sscanf provide the same functionality as the standard scanf, fscanf and sscanf routines (see scanf(S-osr5)). They provide an alternative interface to the scanf(S-osr5) routines for programs written to the X/OPEN Portability Guide, Issue 2, standard. However, nl_scanf, nl_fscanf and nl_sscanf have been withdrawn from XPG3.
The conversion character % in the format string is replaced by the sequence %digit$, where digit is a decimal digit n in the range (1-{ NL_ARGMAX }) (see limits(FP)). Conversions are applied to the nth argument in the argument list, rather than to the next unused argument.
The format passed to these functions can contain either form of conversion specification, such as % or %digit$, although the two forms cannot be mixed within a single format string.