It is currently Sun Jun 24, 2018 11:55 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Jun 07, 2018 8:36 am 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3118
Location: Brazil
File details:
/* ioapi.c -- IO base function header for compress/uncompress .zip
files using zlib + zip or unzip API

Version 1.01h, December 28th, 2009

Copyright (C) 1998-2009 Gilles Vollant
*/

What's the following???

Code:
long ZCALLBACK ftell_file_func (opaque, stream)
   voidpf opaque;
   voidpf stream;
{
    long ret;
    ret = ftell((FILE *)stream);
    return ret;
}


Top
 Profile  
 
PostPosted: Thu Jun 07, 2018 8:39 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 20168
Location: NE Indiana, USA (NTSC)
Are you confused by the K&R-style (pre-C89) prototype that puts the types after the closing parenthesis?


Top
 Profile  
 
PostPosted: Thu Jun 07, 2018 8:46 am 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3118
Location: Brazil
tepples wrote:
Are you confused by the K&R-style (pre-C89) prototype that puts the types after the closing parenthesis?

I have no idea what means such statement.


Top
 Profile  
 
PostPosted: Thu Jun 07, 2018 9:02 am 
Online
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 3079
Location: Tampere, Finland
Old versions of C had a different way of declaring argument types. It's equivalent to this:
Code:
long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
{
    long ret;
    ret = ftell((FILE *)stream);
    return ret;
}

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group