a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 locale.library
  --environment_vars--
  --rexxhost--
  --structures--
  CloseCatalog
  CloseLocale
  ConvToLower
  ConvToUpper
  FormatDate
  FormatString
  GetCatalogStr
  GetLocaleStr
  IsXXXX
  OpenCatalogA
  OpenLocale
  ParseDate
  StrConvert
  StrnCmp
Include
GuruMeditation
Docs » Autodocs » locale.library » GetCatalogStr

NAME

	GetCatalogStr -- get a string from a message catalog. (V38)

SYNOPSIS

	string = GetCatalogStr(catalog,stringNum,defaultString);
D0 A0 D0 A1
STRPTR GetCatalogStr(struct Catalog *,LONG,STRPTR);

FUNCTION

	This function returns a specific string within a message catalog.
If the catalog parameter is NULL, or the requested message does not
exist, then defaultString is returned.

INPUTS

	catalog - a message catalog as obtained from OpenCatalog(), or NULL
stringNum - a message number within the catalog
defaultString - string to return in case "catalog" is NULL or
"stringNum" can't be found

RESULT

	string - a pointer to a NULL-terminated string. The returned string
is READ-ONLY, do NOT modify! This string pointer is valid
only as long as the catalog remains open.

SEE ALSO

OpenCatalogA(), CloseCatalog()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Tristar & Red Sector Inc.

SPB
TRSI
SCX
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2020 Tobias Geijersson support at d0 dot se