<!-- $XConsortium: StrCrD.sgm /main/8 1996/09/08 21:04:01 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN415.rsml.1">
<RefMeta>
<RefEntryTitle>XmStringCreateSimple</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmStringCreateSimple</Function></RefName>
<RefPurpose>A compound string function that creates a compound string in the language environment of a widget
<IndexTerm>
<Primary>XmStringCreateSimple</Primary>
</IndexTerm><IndexTerm>
<Primary>compound string functions</Primary>
<Secondary>XmStringCreateSimple</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Xm.h>
</FuncSynopsisInfo>
<FuncDef>XmString <Function>XmStringCreateSimple</Function></FuncDef>
<!--<ParamDef><Replaceable>text</Replaceable></ParamDef>-->
<ParamDef>char <Parameter>* text</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmStringCreateSimple</Function> creates a compound
string with a text component and a charset tag.
It derives the character set from the current language environment.
</Para>
<Para>The routine attempts to derive a character set from the value of the
LANG environment variable.
If this does not result in a valid character set, the routine uses a
vendor-specific default.
If the vendor has not specified a different value, this default is
ISO8859-1.
</Para>
<Para>The function will allocate space to hold the returned compound string.
The application is responsible for managing the allocated space.
The application can recover the allocated space by calling <Function>XmStringFree</Function>.
</Para>
<Para><Literal>NOTE:</Literal> This routine is obsolete and exists for compatibility with previous
releases. It has been replaced by <Function>XmStringCreateLocalized</Function>.
</Para>
<VariableList>
<VarListEntry>
<Term><Emphasis>text</Emphasis></Term>
<ListItem>
<Para>Specifies a NULL-terminated string to be used as the text component of
the compound string.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns a new compound string.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmStringCreate; and
&cdeman.XmStringCreateLocalized;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
