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 8887897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:55:14+00:00 2026-06-14T21:55:14+00:00

The explanation I’ve received in class for creating a header file was somewhat unclear.

  • 0

The explanation I’ve received in class for creating a header file was somewhat unclear. My professor said that creating a header file, you want to include the function prototypes. I keep getting errors with my function prototypes containing pointer tokens.
My header file:

#ifndef A3_H
#define A3_H

void list_init(record_list*);
void list_destroy(record_list*);
int  list_insert(record_list*, const record*);
int input_record(record*);

#endif

And the errors I’m receiving is:

$ gcc -ansi -W -Wall -pedantic -c a3.c
In file included from a3.c:4:0:
a3.h:4:27: error: expected ‘)’ before ‘*’ token
a3.h:5:30: error: expected ‘)’ before ‘*’ token
a3.h:6:29: error: expected ‘)’ before ‘*’ token
a3.h:7:24: error: expected ‘)’ before ‘*’ token

Am I not able to include pointers in function prototypes in a header file?

  • 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-06-14T21:55:15+00:00Added an answer on June 14, 2026 at 9:55 pm

    Yes, you can have pointers in the header file, but it looks like you haven’t defined record or record_list anywhere.

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

Sidebar

Related Questions

EXPLANATION OF THE CODE BELOW: I am loading a .txt file and creating a
Explanation I have a function that is passed the parameter options . This parameter
Explanation I have a multidimensional array that is iterated over to created a categorized
Quick Explanation One Silverlight (3.0) project with several XAML pages. I want to load
I found the explanation defining WIN32_LEAN_AND_MEAN "reduces the size of the Win32 header files
I want to add explanation between cells. I'm experimenting with sections, trying to make
I would like an explanation of difference for example between this declaration: class Clazz(param1:
As a quick explanation, I created an image that resizes to fill the background
Explanation of scenario: I have a jquery window that will load up with a
Simplest explanation I can produce: In my .NET1.1 web app I create a file

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.