Macaw OS C reference

Function confirm

#include <macawui.h>
void confirm(const char *question, void (*fn)(void));

Asks a question with OK and Cancel buttons.

Parameters

questionconst char *
The text of the question.
fnvoid (*)(void)
Your function, called with nothing if they click OK. NULL only shows the question.

In Dialogs, with alert, askstring, openfile, savefile, pickcolour.