Re: [gtk-list] Re: gtk_init wierdness
- From: Scott Stone <sstone ume pht co jp>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: Re: [gtk-list] Re: gtk_init wierdness
- Date: Thu, 22 Oct 1998 22:35:40 +0900 (JST)
On Thu, 22 Oct 1998, Rostedt, Steven wrote:
>
>
> > -----Original Message-----
> > From: Scott Stone [SMTP:sstone@ume.pht.co.jp]
> > Sent: Thursday, October 22, 1998 9:25 AM
> > To: gtk-list@redhat.com
> > Subject: [gtk-list] Re: gtk_init wierdness
> >
> > On Thu, 22 Oct 1998, katre wrote:
> >
> > the call to gtk_init should look like:
> >
> > gtk_init(argc,&argv);
> >
> > ie, no & in front of argc, like you have below.
> >
> >
> [Steven Rostedt]
> You need to pass the address of argc as well, since the
> gtk_init is going to remove all the parameters it uses
> so your application can act on the rest of the arguments.
>
> the following "is" correct.
>
> > /* initialization */
> > > printf("Starting gtk.\n");
> > > gtk_init(&argc, &argv);
> > > printf("Gtk has started.\n");
> > > return EXIT_SUCCESS;
> > > }
> > <sstone@pht.co.jp>
> >
I stand corrected, I should have checked that more carefully (sorry).
--------------------------------------------------
Scott M. Stone <sstone@pht.com, sstone@turbolinux.com>
<sstone@pht.co.jp>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)
http://www.pht.com http://armadillo.pht.co.jp
http://www.pht.co.jp http://www.turbolinux.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]