00001 00004 /* 00005 * ============================================================================== 00006 * Name : passwd.c 00007 * Part of : Open C/Example code 00008 * Description : This is used to test auth library. 00009 * Version : 1.0 00010 * 00011 * Copyright (c) 2007 Nokia Corporation. 00012 * This material, including documentation and any related 00013 * computer programs, is protected by copyright controlled by 00014 * Nokia Corporation. 00015 * ============================================================================== 00016 */ 00017 00018 // system include 00019 #include <unistd.h> 00020 #include <stdio.h> 00021 #include <stdlib.h> 00022 #include <errno.h> 00023 //#include <staticlibinit_gcce.h> 00024 #include "wsddll.h" 00025 00036 int main(void) 00037 { 00038 char str[20]; 00039 00040 printf ("DLL global int value : %d\n",GetDllInt()); 00041 GetDllString(str); 00042 printf ("DLL global String value : %s\n",str); 00043 00044 SetDllInt(1008); 00045 SetDllString("HelloWorld"); 00046 00047 printf ("DLL global int value : %d\n",GetDllInt()); 00048 GetDllString(str); 00049 printf ("DLL global String value : %s\n",str); 00050 00051 printf("Press any key to exit.\n"); 00052 getchar(); 00053 return 0; 00054 } 00055 00056 //End of file
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.