Skip to content

Instantly share code, notes, and snippets.

@copyninja
Forked from anonymous/gist:9045103
Created February 17, 2014 05:17
Show Gist options
  • Save copyninja/9045129 to your computer and use it in GitHub Desktop.
Save copyninja/9045129 to your computer and use it in GitHub Desktop.
#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