header file

This is a discussion on header file within the C Programming forums, part of the General Programming Boards category; how do i make a header file..?...

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    8

    header file

    how do i make a header file..?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    In the narrow sense, you use a text editor - they're just text files.

    If you want to know how to divide things up into source and header files, there's a FAQ
    FAQ > Multiple source files for one program (C++ example) - Cprogramming.com

    Yes, it's C++, but the basic rule of declarations go in .h files and implementation goes in .c files still applies.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 09-25-2011, 12:22 AM
  2. Replies: 30
    Last Post: 06-19-2006, 12:35 AM
  3. Including header file with in the header file
    By Arafat_211184 in forum C Programming
    Replies: 13
    Last Post: 12-19-2005, 09:03 AM
  4. Replies: 4
    Last Post: 12-14-2005, 01:21 PM
  5. Replies: 6
    Last Post: 04-02-2002, 04:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21