1 /* ----------------------------------------------------------------------- *
3 * Copyright 2004-2008 H. Peter Anvin - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
16 * Hello, World! using libcom32
23 int main(int argc
, char *argv
[])
27 openconsole(&dev_stdcon_r
, &dev_stdcon_w
);
29 printf("Hello, World!\n");
31 for (i
= 1; i
< argc
; i
++)
32 printf("%s%c", argv
[i
], (i
== argc
-1) ? '\n' : ' ');