#include #include #include "bigpoint_cclass.h" #include "bigpoint_dyntype.h" int main(int argc, char * argv[]) { char string[] = "ein weiterer test"; int integer = 42; float floating = 4.3; char * rstring = NULL; long rint = 0; double rfloat = 0.0; struct BIGPOINT_DYNTYPE * dynstring = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_STRING, strlen(string) + 1, string); struct BIGPOINT_DYNTYPE * dynint = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_INT, sizeof(long), (long)integer); struct BIGPOINT_DYNTYPE * dynfloat = new(BIGPOINT_DYNTYPE, BIGPOINT_DYNTYPE_FLOAT, sizeof(double), (double)floating); bigpoint_dyntype_get(dynstring, rstring); bigpoint_dyntype_get(dynint, rint); bigpoint_dyntype_get(dynfloat, rfloat); printf("%s\n", rstring); printf("%ld\n", rint); printf("%lf\n", rfloat); delete(dynstring); delete(dynint); delete(dynfloat); return 0; } // vim: set et ts=4 sw=4: