Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/appdir.c
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * \returns a formatted representation of the specified version number. Non-re-entrant! | * \returns a formatted representation of the specified version number. Non-re-entrant! | ||||
| */ | */ | ||||
| static char *blender_version_decimal(const int version) | static char *blender_version_decimal(const int version) | ||||
| { | { | ||||
| static char version_str[5]; | static char version_str[5]; | ||||
| BLI_assert(version < 1000); | BLI_assert(version < 1000); | ||||
| BLI_snprintf(version_str, sizeof(version_str), "%d.%02d", version / 100, version % 100); | BLI_snprintf(version_str, sizeof(version_str), "%d.%d", version / 100, version % 100); | ||||
| return version_str; | return version_str; | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Default Directories | /** \name Default Directories | ||||
| * \{ */ | * \{ */ | ||||
| ▲ Show 20 Lines • Show All 1,049 Lines • Show Last 20 Lines | |||||