Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Motorola System V 88k Release 3.2 Version 1.2C

Media Vault

Software Library

Restoration Projects

Artifacts Sought



  CONV(3C)        (C Programming Language Utilities)       CONV(3C)



  NAME
       conv: toupper, tolower, _toupper, _tolower, toascii -
       translate characters

  SYNOPSIS
       #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 lower-case letter, the result is the
       corresponding upper-case letter.  If the argument of tolower
       represents an upper-case letter, the result is the
       corresponding lower-case letter.  All other arguments in the
       domain are returned unchanged.

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



  Page 1                                                   May 1989


















  CONV(3C)        (C Programming Language Utilities)       CONV(3C)



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

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




































  Page 2                                                   May 1989
















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