Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2014 05:13
Show Gist options
  • Save anonymous/9045103 to your computer and use it in GitHub Desktop.
Save anonymous/9045103 to your computer and use it in GitHub Desktop.
Sample C program for cgo testing
#include <string.h>
#include "pointer.h"
void GetSampleStruct(SampleStruct *t){
SampleStruct temp = {1,2,3.0};
memcpy(t, &temp, sizeof(SampleStruct));
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment