In file prompts.h:

char* msg_string

(int msgnum)

Copy a configuration prompt to a string.

Documentation

Copy a configuration prompt to a string.

Retrieves the requested prompt, allocates a new string to hold its value, and returns the newly allocated string. This function is used to extract configuration options from prompts.

There is no need for you to allocate space for this string or to copy it over, this is done for you. You will need to free it once you're done with it, though, to avoid memory leaks.

Parameters:
num - The prompt index. You will want to use the symbolic name here.
Returns:
The parsed value: a single character.

Alphabetic index



This page was generated with the help of DOC++.