//---------------------------------------------------------------------------- // Copyright (C) 2013-2015 Fabrice HARROUET (ENIB) // // Permission to use, copy, modify, distribute and sell this software // and its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies and // that both that copyright notice and this permission notice appear // in supporting documentation. // The author makes no representations about the suitability of this // software for any purpose. // It is provided "as is" without express or implied warranty. //---------------------------------------------------------------------------- #include "myNativeLib.h" void myNativeFunction(MyStruct *ms) { fprintf(stdout,"in myNativeFunction(%d,%d,%d,%d,%d,%f,%f,%s)\n", (int)ms->b,(int)ms->c,(int)ms->s,(int)ms->i,(int)ms->l, ms->f,ms->d,ms->t); fprintf(stdout," sizeof(void *)=%d\n",(int)sizeof(void *)); fflush(stdout); ms->b=!ms->b; ms->c+=10; ms->s+=20; ms->i+=30; ms->l+=40; ms->f+=50.0f; ms->d+=60.0; strcat(ms->t,"-output"); } //----------------------------------------------------------------------------