Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tolower(3c) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                 conv(3c)



        _________________________________________________________________
        toupper, tolower, toupper, tolower, toascii
        translate characters
        _________________________________________________________________


        SYNTAX

        #include <ctype.h>

        int toupper (c)
        int c;

        int tolower (c)
        int c;

        int toupper (c)
        int c;

        int tolower (c)
        int c;

        int toascii (c)
        int c;


        DESCRIPTION

        Toupper and tolower have as domain the range of getc(3S):  the
        integers from -1 through 255.  If the argument of toupper
        represents a lowercase letter, the result is the corresponding
        uppercase letter.  If the argument of tolower represents an
        uppercase letter, the result is the corresponding lowercase
        letter.  All other arguments in the domain are returned
        unchanged.

        The macros _toupper and _tolower, accomplish the same thing as
        toupper and tolower, but they have restricted domains and are
        faster.  _toupper requires a lowercase letter as its argument;
        its result is the corresponding uppercase letter.  The macro
        _tolower requires an uppercase letter as its argument; its result
        is the corresponding lowercase letter.  Arguments outside the
        domain cause undefined results.

        Toascii turns off all bits in its argument that are not part of a
        standard ASCII character; it is intended for compatibility with
        other systems.


        SEE ALSO




        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                 conv(3c)



        ctype(3C), getc(3S).





















































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



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