Use another language to call a function: Difference between revisions

Content added Content deleted
(Go solution)
No edit summary
Line 1: Line 1:
{{task|Programming environment operations}}
{{task|Programming environment operations}}
{{clarified-review}}
This task is inverse to the task [[Call foreign language function]]. Consider the following [[C]] program:
This task is inverse to the task [[Call foreign language function]]. Consider the following [[C]] program:
<lang c>#include <stdio.h>
<lang c>#include <stdio.h>
Line 8: Line 9:
{
{
char Buffer [1024];
char Buffer [1024];
unsigned Size = sizeof (Buffer);
size_t Size = sizeof (Buffer);
if (0 == Query (Buffer, &Size))
if (0 == Query (Buffer, &Size))