RSC/MP Programming Manual

Programming Environment
Naming Conventions
Naming Conventions
All parameters and variables in this manual conform to the following naming
conventions, which define how names indicate both the purpose and data type of an
item.
All parameter and field names consist of up to three elements: a prefix, a base type,
and a qualifier. For example, the pcOptionsSelector parameter has these elements:
p, pointer, is the prefix. The prefix, written in lowercase letters, specifies additional
information about the item, such as whether it is a pointer or an array. These are
the standard prefixes:
Prefix Description
p pointer
a array
c, character, is the base type. The base type (also written in lowercase letters)
identifies the data type of the item. These are the standard base types:
Base Type Type/Description
c char
l 32-bit integer
n 16-bit integer
s structure
t 8-bit integer
u unsigned
v void
OptionsSelector is the qualifier. The qualifier is a short phrase composed of one or
more words that specify the purpose of the item. The first letter of each word
appears in uppercase letters.
Constant Names
A constant name describes a numeric va lue used with RSC/MP API functions. All
constant names are written in uppercase letters and begin with the prefixRSC_. The
rest of the constant name identifies the meaning of the constant; for example,
RSC_DEFAULT_OPTIONS and RSC_UMS_WRITEREAD. See Appendix C, RSC/MP
Constants, for a list of the constants and their values.
HP NonStop Remote Server Call (RSC/MP) Programming Manual 522360-006
2- 2