Next Previous Contents

77. strup

Synopsis

Convert a string to uppercase

Usage

String_Type strup (String_Type s)

Description

The strup function takes a string s and returns another string identical to s except that all lower case characters that comprise s will be converted to upper case.

Example

The function

    define Strcmp (a, b)
    {
      return strcmp (strup (a), strup (b));
    }
performs a case-insensitive comparison operation of two strings by converting them to upper case first.
See Also

strlow, toupper, strcmp, strtrim, define_case


Next Previous Contents