Skip to content

Instantly share code, notes, and snippets.

@alyx
Created June 15, 2012 07:14
Show Gist options
  • Save alyx/2935165 to your computer and use it in GitHub Desktop.
Save alyx/2935165 to your computer and use it in GitHub Desktop.
#include "mowgli.h"
int main(void)
{
char *x, *y;
x = mowgli_strdup("the quick brown fox jumped over the lazy dog");
printf("%s\n", x);
y = x+10;
printf("%s\n", y);
mowgli_free(y);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment