Name

zlibVersion — Locates library version at run time.


Library

Libz.lib


Synopsis

#include <zlib.h>
const char * zlibVersion (void);


Return Value

The zlibVersion() function shall return a the string identifying the version of the library currently implemented.


Detailed Description

The zlibVersion() function shall return the string identifying the interface version at the time the library was built.

Applications should compare the value returned from zlibVersion() with the macro constant ZLIB_VERSION for compatibility.


Examples

To discover library version at run time:

#include <stdio.h>
#include <zlib.h>

void Zlibversion( )
{
printf("version is %s", zlibVersion());
}

Output

version is 1.2.3

Errors

None defined.


Feedback

For additional information or queries on this page send feedback


© 2005-2007 Nokia

Top