diff options
author | Christian A. Weber <chris@gna.ch> | 2020-06-22 17:24:07 +0000 |
---|---|---|
committer | Christian A. Weber <chris@gna.ch> | 2020-06-22 17:24:07 +0000 |
commit | bda3aa9ff1d8dd395142ab772337e824679decfa (patch) | |
tree | 1dfe477d9cb1fe7aafc2dd8a5316749873251c3e | |
parent | 23c25d6ed0e51021e5b8c2183d0cf8d3b6a47ffb (diff) | |
download | bobi-bda3aa9ff1d8dd395142ab772337e824679decfa.tar.gz bobi-bda3aa9ff1d8dd395142ab772337e824679decfa.tar.bz2 bobi-bda3aa9ff1d8dd395142ab772337e824679decfa.zip |
add varargs parameters to ShowMonoReq2()
-rw-r--r-- | Misc.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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(); } |