OSDN Git Service

a0ab5af4e634352653f61a81f3a96dcc9fbd976a
[hos/hos-v4a.git] / aplfw / application / example / hello / hello.c
1
2 #include <string.h>
3 #include "hosaplfw.h"
4 #include "hello.h"
5
6
7
8 int Hello_Main(int argc, char *argv[])
9 {
10         int i;
11
12         StdIo_PutString("\nHello!\n");
13
14         StdIo_PrintFormat("argc = %d\n", argc);
15         for ( i = 0; i < argc + 1; i++ )
16         {
17                 if ( argv[i] == NULL )
18                 {
19                         StdIo_PrintFormat("argv[%d] = NULL\n", i);
20                 }
21                 else
22                 {
23                         StdIo_PrintFormat("argv[%d](%d) %s\n", i, (int)strlen(argv[i]), argv[i]);
24                 }
25         }
26
27         return 0;
28 }
29
30