Re: [gtk-list] Re: Need help
- From: Johan Levin <nivel ballyhoo ml org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Need help
- Date: Mon, 4 Jan 1999 18:23:07 +0100 (MET)
> > Try:
> > sprintf(command, "tgif %s", variable);
> > system(command);
>
> No, don't do that or Alan Cox will eat you alive. Use g_strdup_printf
> or g_snprintf from glib.
A more generic way is to use, snprintf. Since the 'g_'-functions are
glib-specific. (And I don't see why glib is better...)
/Johan Levin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]