DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

nl_scanf(S-osr5)


nl_scanf, nl_fscanf, nl_sscanf -- converts formatted native language input

Syntax

cc -a ods30 . . . -lc

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;

Description

nl_scanf- reads from the standard input stream

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.

See also

limits(FP), nl_init(S-osr5), nl_printf(S-osr5), scanf(S-osr5)

Standards conformance

nl_fscanf, nl_scanf and nl_sscanf are obsolete and may not be supported on future releases. Use fscanf(S-osr5), scanf(S-osr5) and sscanf(S-osr5) instead.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005