Explain the code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a look on zlib source code and see declarations like this:
void test_compress OF((Byte *compr, uLong comprLen,
Byte *uncompr, uLong uncomprLen));


What is OF ?

Thanks
Tran Hong Quang
 
Tran said:
Hi,
I have a look on zlib source code and see declarations like this:
void test_compress OF((Byte *compr, uLong comprLen,
Byte *uncompr, uLong uncomprLen));


What is OF ?

# ifdef STDC
# define OF(args) args
# else
# define OF(args) ()
# endif

There are some ancient C compilers (KR) that don't know anything about
prototypes.

Tom
 
Back
Top