Logo Search packages:      
Sourcecode: blender version File versions

void BLO_setversionnumber ( char  array[4],
int  version 
)

Set the version number into the array.

version contains the integer number of the version i.e. 227 array[1] gets set to the div of the number by 100 i.e. 2 array[2] gets the remainder i.e. 27

Definition at line 71 of file BLO_readblenfile.c.

Referenced by BLO_setcurrentversionnumber().

{
      memset(array, 0, sizeof(array));

      array[1] = version / 100;
      array[2] = version % 100;
}


Generated by  Doxygen 1.6.0   Back to index