strins single characters
#1

pawn Код:
new str_hello[16] = "hello";
new str_world[16] = "world";
   
strins(str_world, str_hello[2], 0);
   
// The char in str_hello[2] is a lowercase L.
// I want the lowercase L to be inserted at the start of str_world,
// making it become "lworld". But it inserts the entire string AFTER L.
   
print(str_world);

// Output: 'lloworld'
Please don't suggest format. I want to insert characters at various parts in the string, not always the start/end.
Reply


Messages In This Thread
strins single characters - by MP2 - 26.06.2013, 17:48
Re: strins single characters - by AndreT - 26.06.2013, 18:08
Re: strins single characters - by Glad2BeHere - 26.06.2013, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)