About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/strup.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 strup Context: slangrtl

Synopsis

Convert a string to uppercase

Syntax

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.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.