I should probably show what I am trying to do...
I have a function called chr:
char *chr(int i)
{
return i;
}
which is called like this:
email = [NSString stringWithCString:chr(i+65)];
// i is an integer between 0 and 20
I should probably show what I am trying to do...
I have a function called chr:
char *chr(int i)
{
return i;
}
which is called like this:
email = [NSString stringWithCString:chr(i+65)];
// i is an integer between 0 and 20
char *chr(int i)
{
char *cstr=(char *)malloc(2);
cstr[0]=(char)i;
cstr[1]='\0';
return cstr;
}
email = [NSString stringWithCString:chr(i+65)];