Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2005 10:51:40 +0100
From:      Gert Cuykens <gert.cuykens@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   c++
Message-ID:  <ef60af09050219015116024f83@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
On Thu, 17 Feb 2005 13:17:51 +0100, Hubert Soko=C5=82owski
<h.sokolowski@wsisiz.edu.pl> wrote:
> On Thu, 17 Feb 2005 13:05:43 +0100
> Gert Cuykens <gert.cuykens@gmail.com> wrote:
>=20
> > static void callback( GtkWidget *widget, gpointer   data ){
> >     g_print ("Hello again - %s was pressed\n", (gchar *) data);
> > }
> >
> > why do they put () around gchar ?
> > why can it not be gchar *data ?
>
> You should learn some more about programming in C before you start
> writing GTK apps.
>=20
> hs

Does anybody want to explain what the () thingies are around gchar * ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef60af09050219015116024f83>