Skip to content

Instantly share code, notes, and snippets.

@cheery
Created July 24, 2012 12:43
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 cheery/3169741 to your computer and use it in GitHub Desktop.
Save cheery/3169741 to your computer and use it in GitHub Desktop.
hello to you too!
#include <stdio.h>
struct hello {
int hello;
};
typedef struct hello hello;
hello* buffalo(hello* hello) {
hello->hello = 5;
return hello;
}
int main() {
hello* hey;
hello hello;
hello.hello = 4;
hey = buffalo(&hello);
printf("greeting num %i\n", hey->hello);
return 0;
}
@iKlsR
Copy link

iKlsR commented Aug 13, 2012

hello buffalo. ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment