summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian A. Weber <chris@gna.ch>2020-06-22 17:24:07 +0000
committerChristian A. Weber <chris@gna.ch>2020-06-22 17:24:07 +0000
commitbda3aa9ff1d8dd395142ab772337e824679decfa (patch)
tree1dfe477d9cb1fe7aafc2dd8a5316749873251c3e
parent23c25d6ed0e51021e5b8c2183d0cf8d3b6a47ffb (diff)
downloadbobi-bda3aa9ff1d8dd395142ab772337e824679decfa.tar.gz
bobi-bda3aa9ff1d8dd395142ab772337e824679decfa.tar.bz2
bobi-bda3aa9ff1d8dd395142ab772337e824679decfa.zip
add varargs parameters to ShowMonoReq2()
-rw-r--r--Misc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/Misc.c b/Misc.c
index b4d2fdb..85f0379 100644
--- a/Misc.c
+++ b/Misc.c
@@ -3,6 +3,8 @@
#include <proto/intuition.h>
#include <proto/dos.h>
+#include <stdarg.h>
+
#include "Bobi.h"
extern struct Screen *mainscreen;
@@ -19,10 +21,16 @@ extern BYTE arexxflag;
** Requester mit einem OK-Gadget anzeigen
*/
-void ShowMonoReq2(char *text)
+void ShowMonoReq2(char *text,...)
{
+ char buf[256];
+ va_list args;
+
+ va_start(args,text);
+ vsprintf(buf,text,args);
+
LockWindows();
- ShowRequest(text,0," OK ",0x8000);
+ ShowRequest(buf,0," OK ",0x8000);
UnLockWindows();
}