title: What am I doing wrong with functions?
body: <p>I am trying to create functions instead of having bunch of code in main but I am not able to do that since I am doing something wrong with the functions, here is what my code looks like:</p>
  
  <pre><code>void static notebook(GtkWidget *table, GtkWidget *notebook) {
   notebook = gtk_notebook_new();
   ...
   attaching table to notebook
   ...
  }
  
  
  int main(int argc, char *argv[]) {
   GtkWidget *table;
   GtkWidget *notebook;
  
   ...
   notebook(table, notebook);
   ...
  }
  </code></pre>
  
  <p>Could someone point out my problem and help me fix it please?</p>