Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Version Information
[Nut/OS API]

Collaboration diagram for Version Information:


Detailed Description

Nut/OS version number.

The version number is divided into four parts:

The following code test for version 4.0.1.

 if (NutVersion() < 0x04000100UL) {
     printf("Error: Nut/OS is too old\n");
 }


Functions

u_long NutVersion (void)
 Return Nut/OS version.
CONST char * NutVersionString (void)
 Return Nut/OS version string.


Function Documentation

u_long NutVersion void   ) 
 

Return Nut/OS version.

Returns:
Version coded into an unsigned long. Most significant byte is the major version number, followed by the minor version number, again followed by the release number and finally the build number in the least significant byte.

CONST char* NutVersionString void   ) 
 

Return Nut/OS version string.

Returns:
Pointer to a printable string containing the version number. The string contains 4 numbers separated by dots. The first is the major version number, followed by the minor version number, again followed by the release number and finally followed by the build number. In non-official releases this may be optionally followed by a space and an additional release state.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/