Re: How to change float to char
- From: Dave Reed <dreed capital edu>
- To: engenharia3 maqplas com br
- Cc: gtk-list gnome org
- Subject: Re: How to change float to char
- Date: Fri, 13 Jul 2001 17:01:15 -0400 (EDT)
> From: Flavio Alberto Lopes Soares <engenharia3 maqplas com br>
> Organization: MAQPLAS
>
> I need to print float numbers in a gtk label and this widget only accept
> gchar in your text parameter, I want to know if exists some type of
> routine that changes float number in format a.bcde to char format
> "a.bcde".
>
> Very Thanks for any help
>
> Flavio Alberto
Take a look at snprintf - it uses printf formatting codes but prints
to a string rather than standard output.
Try:
man snprintf
or see a good C programming book for details.
Dave
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]