Subj : Re: How to conver char pointer to char To : borland.public.cpp.borlandcpp From : "Jerry Bloomfield (TeamB)" Date : Thu Jul 31 2003 07:42 pm On Thu, 31 Jul 2003 14:01:42 -0400, "Oldrin Maduro" wrote: >Does anyone know how to convert a char pointer to a char variable? Well, since I don't have my compiler open for a syntax check, I can't say guarantee it, but the following should do what you are asking: char * ptr = "This is a test."; char var; var = *ptr; Now, "var" will have the value 'T' (the first letter of the string pointed to by the character pointer)... Jerry Bloomfield (TeamB) -- http://www.teamb.com JersWork@iwc.net Please do *NOT* send private e-mail without prior permission (my anti-spam filters will probably just delete it anyway ) .