title: Getting a number from an entry text
body: <p>I am making an interface using GTK and C. I've put an entry text in my interface, the user will type only numbers. And I need to get the entered numbers to use them later. However, using the function <code>gtk_entry_get_text</code> will stock the entered text in a <code>const</code> <code>gchar</code> variable. How can I get what the user typed as a number?</p>
  
  <p>The code to get the text is: </p>
  
  <pre><code>static void ok_clicked(GtkWidget *widget, GtkWidget *entry){ 
  const gchar *get_text; 
  get_text = gtk_entry_get_text(GTK_ENTRY(entry)); 
  printf("entry contents: %s\n",get_text); }
  </code></pre>