These two functions aren't "the same, only oposite", it seems?
In the following example, two strings are picked from two gtktentry fields:
Code:
const gchar *plaintext;
const gchar *b64text;
plaintext = gtk_entry_get_text(GTK_ENTRY(cwidgets->plainentry));
b64text = gtk_entry_get_text(GTK_ENTRY(cwidgets->b64entry));
gtk_entry_set_text(GTK_ENTRY(cwidgets->b64entry), g_base64_encode(plaintext, g_utf8_strlen(plaintext, 256)));
gtk_entry_set_text(GTK_ENTRY(cwidgets->plainentry), g_base64_decode(b64text, g_utf8_strlen(b64text, 256)));
The g_base64_encode line compiles fine, without warnings.
However, the g_base64_decode line gives this warning:
Code:
warning: passing argument 2 of ‘g_base64_decode’ makes pointer from integer without a cast
The data for the two functions are the same, so they must be expecting different data formats?
Any hints?