Thread: Header files

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    1

    Header files

    hello everyone:
    I'm a begginer at C and having such a hard time with it. Would anyone please help me with these header files?. Are these part of C or can we define them? Thanks in advance.


    #include <stdio.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <unistd.h>
    #include <string.h>

  2. #2
    Registered User char's Avatar
    Join Date
    Apr 2002
    Posts
    31
    They are "part of C". This header files include prototype declarations to many functions that you will be using often, like printf (), scanf () and many more. They also include many constants and structure definitions.

    You may create your own header files and access them: #include "myheader.h". In this case you use "" instead of <>.

    You will learn more about header files as you progress in your C adventure.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 12:21 PM
  3. classes and header files
    By Drake in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2006, 07:12 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM