Removed trailing space in croatian CT.
[AROS.git] / test / exec / vblank.c
blob32491a4f3ddf5283df924193e200da4bcc8e5884
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/asmcall.h>
7 #include <exec/interrupts.h>
8 #include <hardware/intbits.h>
10 #include <proto/dos.h>
11 #include <proto/exec.h>
13 int __nocommandline = 1;
15 static int counter = 0;
17 static AROS_INTH1(vblank_handler, APTR, mydata)
19 AROS_INTFUNC_INIT
21 (void)mydata;
22 counter++;
23 return 0;
25 AROS_INTFUNC_EXIT
29 static struct Interrupt vblank_int =
31 .is_Code = (APTR)vblank_handler
34 int main(void)
36 AddIntServer(INTB_VERTB, &vblank_int);
38 while (!(CheckSignal(SIGBREAKF_CTRL_C)))
40 Printf("\rVBlank counter: %lu ", counter);
43 RemIntServer(INTB_VERTB, &vblank_int);
45 Printf("\nTerminated\n");
47 return 0;