Solutions of common problems
This module provides functions for concatenation of strings,
and the name CharPtr for the type char * .
The module is instantiated by
$/Tech/Strings.specs
All entities exported by this module can be used in specifications
of type .lido , .init , .finl , and .con .
They can also be used in .pdl specifications or in C modules
if the interface file Strings.h is imported there.
The module defines the type name CharPtr for
char * , especially to be used in LIDO specifications.
The module exports the functions
CharPtr CatStrStr (CharPtr s1, CharPtr s2)
- The strings
s1, s2 are concatenated. The resulting string is stored
in the string memory of the csm module, and the pointer to it
is returned.
int IndCatStrStr (CharPtr s1, CharPtr s2)
- The strings
s1, s2 are concatenated. The resulting string is stored
in the string memory of the csm module, and its StringTable
index is returned.
A macro CatStrInd(s,i) is exported it obtains the second
of the concatenated strings
by the index i into the StringTable .
This macro is used to simplify composition of message texts.
|