Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lcsettab(PCI) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 lcs_set_tables(PCI)            6 January 1993            lcs_set_tables(PCI)


 Name

    lcs_set_tables - sets input and output language character set conversion
    tables

 Syntax


    #include <lcs.h>

    int lcs_set_tables(out_tbl, in_tbl)
    lcs_tbl out_tbl, in_tbl;


 Description

    This function sets the translation tables for the conversion functions.
    The tables must first be obtained by calling lcsgettable.

 Return value

    This function returns 0 on success and -1 if one of the tables is
    invalid.  Error codes are returned in lcserrno.

 Example


       #include <lcs.h>
       lcs_tbl input_table;
       lcs_tbl output_table;
               :
               :
       /* Get input table */
               :
               :
       /* Get output table */
               :
               :
       /* Set the tables */
       if ( lcs_set_tables(output_table, input_table) < 0 ) {
               errorHandler();
       }
               :
               :


 See also

    lcsintro(PCI), lcsgettable(PCI)


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