diff options
author | Anthony Green <green@moxielogic.com> | 2003-06-06 20:07:57 +0400 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2003-06-06 20:07:57 +0400 |
commit | 045e4d2e0829b6c07ef10171bf5d00ab85cbb497 (patch) | |
tree | 36b49868598b46c77d7edeb97df54c291c5f881e /libgloss/iq2000/test.c | |
parent | 75d7d177004358ba5e410a2cd98f2249b6c4e1b3 (diff) |
iq2000 port.
Diffstat (limited to 'libgloss/iq2000/test.c')
-rw-r--r-- | libgloss/iq2000/test.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libgloss/iq2000/test.c b/libgloss/iq2000/test.c new file mode 100644 index 000000000..9ea873adf --- /dev/null +++ b/libgloss/iq2000/test.c @@ -0,0 +1,39 @@ +#include <stdio.h> + +static void +send_msg1 (void) +{ + static char msg[] = "Hello World\r\n"; + write(1, msg, strlen (msg)); +} + +static void +send_msg2 (void) +{ + static char msg[] = "Goodnight Irene\r\n"; + write(1, msg, strlen (msg)); +} + +static void +delay (void) +{ + int i; + + for (i = 0; i < 1000000; i++) + ; +} + +int +main(int argc, char *argv[]) +{ + int i, j; + for (i = 0; i < 10; i++) + { + send_msg1 (); + delay (); + send_msg2 (); + } + return 0; +} + + |