Skip to content

Instantly share code, notes, and snippets.

@bambuchaAdm
Last active January 4, 2016 15:39
Show Gist options
  • Select an option

  • Save bambuchaAdm/8642446 to your computer and use it in GitHub Desktop.

Select an option

Save bambuchaAdm/8642446 to your computer and use it in GitHub Desktop.
static
int **
some something(int * tab,int size)
{
int ** main_tab = malloc(size * sizeof(int *));
int i=0,j=0;
for(i = 0; i < size; ++i){
main_tab[i] = malloc(tab[i] * sizeof(int));
for(j = 0; j < tab[i]; ++j){
main_tab[i][j] = j;
}
}
return main_tab;
}
int * gimme_merenge(int currentshit[5][5])
{
int current_state[23];
int * blahblah = malloc(25*sizeof(int));
int best[25];
int next[25];
int i,j;
//cos sie dzieje ze tablica best[25] zawiera wszystko co potrzebuję. Nieważne co. Zawiera makę pakę na szczudłach.
return blahblah;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment