[C] Libraries and headers

From: .:'DevarajA':. (no_at_spam.com)
Date: 07/25/04

  • Next message: Alwyn: "Re: [C] Libraries and headers"
    Date: Sun, 25 Jul 2004 10:10:45 GMT
    
    

    I'm learning C by myself, and I had some problems finding info about
    libraries and h files. This is what I understood, please correct me if it's
    wrong.

    1) Libraries are files containing one or more object files which include the
    compiled code of library functions such as printf, scanf, pow, etc...

    2) Headers contain prototypes (can anyone explain me what are prototypes?)
    of the functions present in the library. H files also contain global
    variables declarations, templates, constants and macros.

    3) The C file that should use one of the functions of the library must
    include the h file coming with it.


  • Next message: Alwyn: "Re: [C] Libraries and headers"

    Relevant Pages

    • Re: Is Forth more focused on detail rather than on concept?
      ... we only use the C compiler, but it really could interface to any language ... that can create shared libraries and access the Forth stack. ... Forth signature can make that d on both). ... prototypes have to be defined in a Forth-like syntax. ...
      (comp.lang.forth)
    • Re: Way to view public function names in a library
      ... But even knowing the prototype for each function, ... are header files on the library there, then I can get the function ... prototypes from the header files, ... libraries, but all of them didn't mention whether header files are ...
      (comp.lang.c)
    • Re: checking double for Inf or NaN - how?
      ... However prototypes are just a nuisance. ... header file, where they describe the interface to the file, but the only ... The problem might be the weight of libraries without this feature, ...
      (comp.lang.c)
    • Re: is stdio.h is a shared library
      ... libraries a normal programmer uses? ... a .h file is a little bit of source code -- it isn't a library at all. ... The functions which have prototypes in are in libc, ...
      (comp.os.linux.development.system)
    • Re: BOOST question
      ... After programming in a variety of other languages C++ is like learning ... to drive a large truck with manual transmission after years of driving ... All libraries ... What you should do is add the folder in which LibDir is located (i.e. ...
      (microsoft.public.dotnet.languages.vc)