equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * The classic "Hello World" program made wide |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 #include <stdio.h> |
|
23 #include <stdlib.h> |
|
24 |
|
25 /** |
|
26 @SYMTestCaseID SYSLIB-STDLIB-CT-1095 |
|
27 @SYMTestCaseDesc Tests for printing to standard output stream |
|
28 @SYMTestPriority High |
|
29 @SYMTestActions Tests for writing a string to standard output stream |
|
30 @SYMTestExpectedResults Test must not fail |
|
31 @SYMREQ REQ0000 |
|
32 */ |
|
33 int wmain (int argc, wchar_t *argv[]) |
|
34 { |
|
35 int x; |
|
36 char buffer[200]; |
|
37 printf("Hello World\n"); |
|
38 for (x=1; x < argc; x++) |
|
39 { |
|
40 wcstombs(buffer, argv[x], sizeof(buffer)); |
|
41 printf("arg %d is %s\n", x, buffer); |
|
42 } |
|
43 return 0; |
|
44 } |