Posted by James Durbin on 1999-10-31
> while(ar.ReadString(strOneLine))
> {
> sscanf(strOneLine,"(somehow skip ahead 11 spaces) 8%u (somehow skip
> ahead 10 spaces) ", &RegFuncData.LoAddr, &RegFuncData.HiAddr);
> // adds the data to the array
> m_RegisterArray.Add(RegFuncData);
> }
Have you tried to sscanf the "extra crap" into dummy variables...
basicaly make some temporary variables inside the block of code and if
you want to speed it up just put your loop within another block of code:
{
//declare temp var(s) here... 'puter will push them on the stack
here...
while(...) //your loop
{
...
}
} //'puter will pop the temp var(s) off the stack here freeing the
memory...
there it no reason that I can think of that this should not work...
This may not be a good programming practice, but it'll work... I just
write code how I feel I should write it and stick comments in if someone
else is going to read it or I start getting lost in it... :) btw, I've
never had to make a lone block of code before, but according to the C
and C++ languages it's completely legal or at least as far as I know...
--
/*
From: James H. Durbin
Email: divine-bovine@xxxx.xxx
*/
Previous post | Next post | Timeline | Home