Name

gzeof — Tests the compressed file stream file for end of file.


Library

Libz.lib


Synopsis

#include <zlib.h>
int gzeof (gzFile file );


Return Value

If file was open for reading and end of file has been reached, gzeof() shall return 1. Otherwise, gzeof() shall return 0.


Detailed Description

The gzeof() function shall test the compressed file stream file for end of file.


Examples

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

void Gzeof( )
{
gzFile file;
const char * fname = TESTFILE ;
file = gzopen(fname, "wb");

if (gzputs(file, "ello") != 4)
{
printf("error");
}
int x=gzeof(file);
if(x!=0)
{
printf("error");
}

err= gzclose(file);
}

Errors

None defined.


Feedback

For additional information or queries on this page send feedback

© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.