Hi all.
In my Iphone application, i successfully converted NSString to const char* using
const char* cString = [nsStringObject cStringUsingEncoding:ASCIIEncoding];
and i made use of the printf("%s",cString) to display it in console...
But its printing only the first letter, not the entire string..
(I am a little weak in pointers)
Is it because of any null termination problems??
Kindly help me in resolving this..
Also i want to know "Why NSLog(nsStringObject) is not printing anything in console?
I wnat to see my NSException reason (which is of NSString type)
In my Iphone application, i successfully converted NSString to const char* using
const char* cString = [nsStringObject cStringUsingEncoding:ASCIIEncoding];
and i made use of the printf("%s",cString) to display it in console...
But its printing only the first letter, not the entire string..
(I am a little weak in pointers)
Is it because of any null termination problems??
Kindly help me in resolving this..
Also i want to know "Why NSLog(nsStringObject) is not printing anything in console?
I wnat to see my NSException reason (which is of NSString type)