Function askstring
#include <macawui.h>void askstring(
const char *prompt,
const char *initial,
void (*fn)(const char *text)
);
Asks the person to type some text.
Parameters
promptconst char *- The question above the box.
initialconst char *- The text in the box to start with.
NULLfor an empty box. fnvoid (*)(const char *text)- Your function, called with the text they typed when they click OK.
In Dialogs, with alert, confirm, openfile, savefile, pickcolour.