sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * The classic "Hello World" program made wide sl@0: * sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #include <stdio.h> sl@0: #include <stdlib.h> sl@0: sl@0: /** sl@0: @SYMTestCaseID SYSLIB-STDLIB-CT-1095 sl@0: @SYMTestCaseDesc Tests for printing to standard output stream sl@0: @SYMTestPriority High sl@0: @SYMTestActions Tests for writing a string to standard output stream sl@0: @SYMTestExpectedResults Test must not fail sl@0: @SYMREQ REQ0000 sl@0: */ sl@0: int wmain (int argc, wchar_t *argv[]) sl@0: { sl@0: int x; sl@0: char buffer[200]; sl@0: printf("Hello World\n"); sl@0: for (x=1; x < argc; x++) sl@0: { sl@0: wcstombs(buffer, argv[x], sizeof(buffer)); sl@0: printf("arg %d is %s\n", x, buffer); sl@0: } sl@0: return 0; sl@0: }