Skip to content

Instantly share code, notes, and snippets.

@chrisdickinson
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdickinson/8bbc51fd30970fbfac22 to your computer and use it in GitHub Desktop.
Save chrisdickinson/8bbc51fd30970fbfac22 to your computer and use it in GitHub Desktop.
int algetstring(const char* str, const char* str2) {
return 0;
}
int main(void) {
char* label = new char[23];
int sSuccess;
if(sSuccess == algetstring("label", label)) {
}
}
int algetstring(const char* str, const char*& str2) {
return 0;
}
int main(void) {
char* label = new char[23];
const char* label2 = label;
int sSuccess;
if(sSuccess == algetstring("label", label2)) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment