In the next example, the string returned from the priv_to_str(3TSOL) routine is passed to the str_to_priv(3TSOL) routine to convert the string to the numeric ID.
priv_id = str_to_priv(string); printf("Priv ID = %d\n", priv_id);
The printf statement prints the following:
Priv ID = 6 |