(main): Print the float and double before sending it.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1295 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-03-30 01:34:25 +00:00
parent 1029a15c66
commit 8d74080c8f

View file

@ -98,7 +98,11 @@ int main(int argc, char *argv[])
printf(">>returned foo: i=%d s=%s l=%lu\n",
f2.i, f2.s, f2.l);
#endif
[p sendDouble:dbl andFloat:98.6];
{
float f = 98.6f;
printf(">>sending double %f, float %f\n", dbl, f);
[p sendDouble:dbl andFloat:f];
}
dbl_ptr = [p doDoublePointer:&dbl];
printf(">>got double %f from server\n", *dbl_ptr);
[p sendCharPtrPtr:&string];