I'm working with SQLite so that's why I need a const char, otherwise I'd know exactly how to do this, no problem at all.
Unfortunately I haven't spent much time with the char data type.
Here's my question...
What I have is a string and then a variable to put at the end of the string. How can I format this so I can put the variable at the end of the string? If I were working with an NSString this is what I'd be trying to accomplish:
That's just an example but almost exactly what I'm trying to accomplish, just not inside my const char. Any ideas?
Unfortunately I haven't spent much time with the char data type.
Here's my question...
What I have is a string and then a variable to put at the end of the string. How can I format this so I can put the variable at the end of the string? If I were working with an NSString this is what I'd be trying to accomplish:
NSString *sqlString = [NSString stringWithFormat"delete from mytable where name = %@",theName];
That's just an example but almost exactly what I'm trying to accomplish, just not inside my const char. Any ideas?