//--------------------------------------------------------------------------------//
// 桁数を取得
//--------------------------------------------------------------------------------//
int GetDigit( int _sWorkNum )
{
if( _sWorkNum == 0 )
{
return 1;
}
int sDigit = 0;
for( sDigit = 0; _sWorkNum != 0; sDigit++ )
{
_sWorkNum /= 10;
}
return sDigit;
}
//--------------------------------------------------------------------------------//
// 整数をバラす
//
// [in] _pDstArray : 格納先
// _sWorkNum : 元となる値
//--------------------------------------------------------------------------------//
void DivDigit( int* _pDstArray, int _sWorkNum )
{
int score_index = 0;
while( !(_sWorkNum <= 0 ) )
{
_pDstArray[score_index++] = _sWorkNum % 10;
_sWorkNum /= 10;
}
}