Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7081329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:54:26+00:00 2026-05-28T06:54:26+00:00

I am reading an old book about code obfuscation in C (the book was

  • 0

I am reading an old book about code obfuscation in C (the book was printed in 1993), and I’ve noticed that the functions with arguments are implemented this way:

real_dump(address, infunc, ofp)
char *address;
int (*infunc)();
FILE *ofp;
{
    /* the code goes here... */
}

Also, no return type is defined.

Is it an old standard? Is it possible to enable gcc to compile this code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:54:27+00:00Added an answer on May 28, 2026 at 6:54 am

    Function definitions in the non-prototype form are valid C89, C99 and C11 code.

    It is called the old-style function definition but this feature is marked since C89 as an obsolescent feature.

    This form should be not used in new programs.

    C99 Rationale says:

    “Characterizing the old style as obsolescent is meant to discourage
    its use and to serve as a strong endorsement by the Committee of the
    new style.”

    even K&R2 discourages its use:

    “The old style of declaration and definition still works with ANSI C, at least for a transition period, but we strongly recommend that you use the new form when you have a compiler that supports it.”

    Now your function also doesn’t have a return type and omitting the return type in a function declaration or in a function definition is no longer valid since C99. Before C99, functions without a return type implicitely returned an int.

    Regarding the gcc question, by default gcc compiles with -std=gnu89. It means C89 Standard + gcc extensions. So by default gcc will accept to compile a program with the functions declaration and definition in their old-style form and without a return type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm reading through some old code at work, and have noticed that there are
I've been reading some fairly old books to learn CSS. I've noticed that most
I'm reading this book and there is a chapter about prototypes with this hard
Reading this question I found this as (note the quotation marks) code to solve
I have been digging internet for couple days, reading very old information, that leads
I was reading some old articles about debugging, and one of them mentioned the
Reading this old but classic document Writing High-Performance Managed Applications - A Primer ,
Reading through an old C++ Journal I had, I noticed something. One of the
I am learning Rails the age old way. By reading Agile Web Development with
I have the following source snippet from a book that I'm reading now. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.