Skip to content

Instantly share code, notes, and snippets.

@slayton
Created October 30, 2012 18:30
Show Gist options
  • Save slayton/3982090 to your computer and use it in GitHub Desktop.
Save slayton/3982090 to your computer and use it in GitHub Desktop.
char *lookUpSpikeTs(int i){
char x[20];
sprintf(x, 'hello world:%d', i);
return x;
}
char *getTsForSpike(int i){
return lookUpSpikeTs(i);
}
int main(int argc, char** argv){
fprintf(stderr, 'Response:%s\n', getTsForSpike(i));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment