Split string on a specific length
#1

How to split a string on a specific length without the usage of sscanf? For Instance:

pawn Код:
new sampletext[64] = "This is a sample text which will be splited into arrays";
new arrayofstr[2][128];
strsplit(sampletext, 27, arrayofstr);
printf("%s", arrayofstr[0]); // which will print out "This is a sample text which"
Reply


Messages In This Thread
Split string on a specific length - by T0pAz - 05.03.2012, 14:00
Re: Split string on a specific length - by Vince - 05.03.2012, 14:08
Re: Split string on a specific length - by T0pAz - 05.03.2012, 14:17
Re: Split string on a specific length - by R0FLC0PTER - 05.03.2012, 14:27
Re: Split string on a specific length - by T0pAz - 05.03.2012, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)