Re: convert gchar



On Mon, Mar 04, 2002 at 02:33:01PM +0100, Gregory Babusiaux wrote:
hi, i'd like to know how to convert a gchar to an integer

thanks for reading

greg, brussels
---end quoted text---

If it's stored like this "123", you can use

        int atoi(char *)

function defined at stdlib.h. More information about this, you can check it's
man page, you have more 4 functions like this over there..

[]'s
-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]