Ibrahim Haddad wrote:

> I am casting a variable of type float  into an interger using:
>         (int)float_variable
>
> I need to change the resulting integer to be saved in a variable of type
> (char *) since I need to use fgetc() which requires (char *)

 There is a function called itoa which convert an integer to a string
meanwhile there is
also the ltoa function which convert a float to a string !

 Check out the ltoa and itoa functions !

 Good programming !

 Best regards,
   Nuno Carvalho

-------------------------------------------
 Nuno Emanuel F. Carvalho
 Department of Informatics Engineering
 University of Coimbra
 PORTUGAL

 [EMAIL PROTECTED]
 http://student.dei.uc.pt/~nemanuel
-------------------------------------------


Reply via email to