for (int i=0; i < strlen(chars1); i++) {
//*buf=chars1[i];
NSLog(@"Received %c\n", chars1[i]);
ichar = [ NSString stringWithUTF8String:chars1[i] ];
NSLog(@"Received ", ichar);
counter=strlen(chars1)-i;
gnutls_record_send (session, [ichar UTF8String] , counter);
}
I am trying to use this method to send information to my server but i keep getting an warning:
warning: passing argument 1 of 'stringWithUTF8String:' makes pointer from integer without a cast
the warning is for this line: ichar = [ NSString stringWithUTF8String:chars1[i] ];
is there anyway i can store chars1[i] into a temp char or string and the use it in my loop for sending?
UPDATED
I am just looking for a way to parse a NSString from starting character to end and then be able to use that without getting this warning:
makes pointer from integer without a cast