Re: How to change float to char



> 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]