Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nl_scan(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

limits(FP)

scanf(S)


 nl_scanf(S)                    6 January 1993                    nl_scanf(S)


 Name

    nl_scanf, nl_fscanf, nl_sscanf - converts formatted native language input

 Syntax


    cc  . . .  -lintl


    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

    The functions nlscanf, nlfscanf and nlsscanf provide similar func-
    tionality to the standard scanf, fscanf and sscanf routines (see
    scanf(S)), with the difference that the conversion character % in the
    format string is replaced by the sequence %digit$, where digit is a
    decimal digit n in the range (1-{ NLARGMAX }) (see limits(FP)).  Conver-
    sions 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 conver-
    sion specification, such as % or %digit$, although the two forms cannot
    be mixed within a single format string.

 See also

    limits(FP), nlinit(S), nlprintf(S), scanf(S)

 Standards conformance

    nlfscanf, nlscanf and nlsscanf are extensions of AT&T System V pro-
    vided by The Santa Cruz Operation.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026