Guardian C Library Calls Reference Manual

stpsym (supplementary)
3-190 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
Example
This example scans the string text until it encounters a non-alphanumeric character; it
then writes the string to symbol:
#include <stringh>
#include <stdioh>
int main(void)
{
char *text;
char symbol[10];
char *r;
text = "alpha1 2";
r = stpsym(text,symbol,10);
printf("%s",symbol); /* prints "alpha1" */
}