prynks
July 27th, 2002, 06:30 PM
hi guys ,
just need ur help ASAP on one small issues..
i need to parse a string in such a way that every 2 characters in the string should be converted into unsigned value for ex if my string is
char StringValue = {"101112131415161718"};
then i have to parse this in such a manner than i should get 9 integers with values 10 , 11 , 12 , 13 , 14 , 15 ,16 ,17 ,18
now this seems to be very simple on any normal platform where timing or memory is not a issue,
but i need to get this running on a RTOS with limited time and memory.
so this should be done in less than 6ms on lets say a 486 processor without using any classes , templates or libraries other than ANSI C ..
i hope u got my point and plz let me know if this could be done without much looping and much of string functions ..
we can use the normal features of c c++ and assembly..
thanks in advance looking forward for ur support.
just need ur help ASAP on one small issues..
i need to parse a string in such a way that every 2 characters in the string should be converted into unsigned value for ex if my string is
char StringValue = {"101112131415161718"};
then i have to parse this in such a manner than i should get 9 integers with values 10 , 11 , 12 , 13 , 14 , 15 ,16 ,17 ,18
now this seems to be very simple on any normal platform where timing or memory is not a issue,
but i need to get this running on a RTOS with limited time and memory.
so this should be done in less than 6ms on lets say a 486 processor without using any classes , templates or libraries other than ANSI C ..
i hope u got my point and plz let me know if this could be done without much looping and much of string functions ..
we can use the normal features of c c++ and assembly..
thanks in advance looking forward for ur support.