sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. sl@0: * sl@0: * This library is free software; you can redistribute it and/or sl@0: * modify it under the terms of the GNU Lesser General Public sl@0: * License as published by the Free Software Foundation; either sl@0: * version 2 of the License, or (at your option) any later version. sl@0: * sl@0: * This library is distributed in the hope that it will be useful, sl@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of sl@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU sl@0: * Lesser General Public License for more details. sl@0: * sl@0: * You should have received a copy of the GNU Lesser General Public sl@0: * License along with this library; if not, write to the sl@0: * Free Software Foundation, Inc., 59 Temple Place - Suite 330, sl@0: * Boston, MA 02111-1307, USA. sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: // This is a test application used by g_spawn APIs. This application sl@0: // is spawned by them. sl@0: sl@0: #include sl@0: sl@0: int main(int argc,char *argv[]) sl@0: { sl@0: int i; sl@0: FILE *fp; sl@0: sl@0: fp = fopen("c:\\Helloworld.txt", "w"); sl@0: sl@0: if(!fp) sl@0: { sl@0: printf("File creation failed\n"); sl@0: return 0; sl@0: } sl@0: sl@0: fprintf(fp,"argc = %d\n", argc ); sl@0: sl@0: for(i=0;i