 |
|
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
|

03-11-2010
, 13:58
Re: Add some points on a Integer
|
#4
|
Quote:
Originally Posted by worldspawn
sorry for offtop but what for?
|
Why i must tell you? o.O
Quote:
Originally Posted by Emp`
Code:
InsertCharacter( szInput[], iLoc, iChar, szOutput[], iLen )
{
copy(szOutput, iLen, szInput);
if( iLoc < iLen )
{
szOutput[iLoc] = iChar;
copy(szOutput[iLoc+1], iLen-(iLoc+1), szInput[iLoc]);
}
}
Untested. Usage:
Code:
InsertCharacter( "12345", 2, '.', blah, charsmax(blah));
// blah == "12.345"
|
What is the usage of the second parameter?
__________________
Quote:
Originally Posted by joropito
You're right Metalicross
|
|
|
|
|