Here is the previously mentioned function.
- Code: Select all
void initialization::populateTempCharArr(std::string tempStr1, char tempCharArr[])
{
int iterator;
for(iterator = 0; iterator < returnHighestCount(); ++iterator)
{
if(tempStr1[iterator] == '\0')
break;
else
{
//This is where the seg fault occurs
tempCharArr[iterator] = tempStr1[iterator];
}
}
}
-- Mon May 07, 2012 12:58 am --
Ill come back and check on the forums. However, ill be on teamspeak for a while if you wanna bs.
Thanks in advance for any input.
-- Mon May 07, 2012 4:14 am --
Nvm I got rid of the fault. Thnx to atropine.