Copy a configuration prompt to a string.
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.