C header files question
Results 1 to 2 of 2

Thread: C header files question

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    161

    C header files question

    Hi, I am currently starting out in the subject of network programming in C. From looking at code examples I found this:

    #include "unp.h"

    What is the difference between that and the regular way to include .h files:
    #include <stdio.h>

    thanks
    j

  2. #2
    AntiOnline n00b
    Join Date
    Feb 2004
    Posts
    665
    #include
    This is called File Inclusion Directive, it causes one file to be included in another. It simply causes the entire content of the filename to be inserted into the source code. It is common for the file included to have a .h exyension(header File)

    Actually There are two ways to write #include statement. These are
    • #include "filename"
    • #include <filename>


    #include "abc.h" This command would look for the file abc.h in the current directory as well as the specified list of directories as mentioned in the include search path that might have been set.

    #include <abc.h> This Command would look for the file abc.h in the specified list of directories only ( include directory)



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides