2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <exec/alerts.h>
7 #include <proto/intuition.h>
13 * An EXTREMELY ugly test quickly made of alert.hook source.
14 * I just didn't have any other text data with proper layout.
15 * Please rewrite this into something better.
18 static UBYTE
*const recov
= "\x38\x0f" "Recoverable Alert! ";
19 static UBYTE
*const mouse
= "\x01\x50\x0f" "Press mouse button to continue.";
20 static UBYTE
*const fmtstring
= "\xa8\x2a" "Task: 12345678 - ";
21 static UBYTE
*tname
= "--task not found--";
23 static STRPTR
mystrcpy(STRPTR dest
, STRPTR src
, LONG len
)
34 int main(int argc
, char **argv
)
36 UBYTE buffer
[256], *buf
;
40 if ((argc
> 1) && (!stricmp(argv
[1], "deadend")))
48 buf
= mystrcpy(buf
, recov
, -1);
51 buf
= mystrcpy(buf
, mouse
, -1);
55 buf
= mystrcpy(buf
, fmtstring
, -1);
57 buf
= mystrcpy(buf
- 1, tname
, 30);
61 ret
= DisplayAlert(code
, buffer
, 0x38);
63 printf("Result is: %d\n", ret
);