mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +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
0ca028f5ba
commit
4c3379713c
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…
Add table
Add a link
Reference in a new issue