From owner-freebsd-questions@FreeBSD.ORG Sat Feb 19 09:51:41 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30F7416A4CE for ; Sat, 19 Feb 2005 09:51:41 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id A997743D54 for ; Sat, 19 Feb 2005 09:51:40 +0000 (GMT) (envelope-from gert.cuykens@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so47000rng for ; Sat, 19 Feb 2005 01:51:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=FUkKvy6FtZQ6L3QdgQxx5BjmoN1VXS0ONKu3SHGsfeV8LZxSMuuZj2JQVrR8cCSzlVy16GzTG8t8+j/uhSna8EbPJCSBjTD0GCY2MFbAI5qpg6HntjWgMKAn55QBtAT8Q6EPFb24aP3YOuCjWyrPy31GJEBpxijDwPtc1SYRTXc= Received: by 10.38.68.14 with SMTP id q14mr29910rna; Sat, 19 Feb 2005 01:51:40 -0800 (PST) Received: by 10.38.74.23 with HTTP; Sat, 19 Feb 2005 01:51:40 -0800 (PST) Message-ID: Date: Sat, 19 Feb 2005 10:51:40 +0100 From: Gert Cuykens To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: c++ X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Gert Cuykens List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2005 09:51:41 -0000 On Thu, 17 Feb 2005 13:17:51 +0100, Hubert Soko=C5=82owski wrote: > On Thu, 17 Feb 2005 13:05:43 +0100 > Gert Cuykens 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 * ?