|
|
Typical Usage:
(Examples of a typical usage of the component in user code.
For more information please
see the page Component Code
Typical Usage.)
Assume the component name "StrL1" and at least two strings in the string list.
MAIN.C
word size;
char* str; /* Pointer to a stored string */
void main(void)
{
/* Get number of strings in the list */
size = StrL1_GetNumLines();
/* Read the first string from the list */
str = StrL1_GetLine(0);
/* Read the second string from the list */
str = StrL1_GetLine(1);
}
|