mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
(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:
parent
1029a15c66
commit
8d74080c8f
1 changed files with 5 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue