The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

*SCREEEEEEAAAAAM!* by Pic2002-07-20 07:46:11
  My only idea by caffine-iv2002-07-20 07:50:14
    Well by Pic2002-07-20 07:52:02
      Heh. by caffine-iv2002-07-20 07:53:48
        Well by Pic2002-07-20 08:02:48
          And also it tells me by Pic2002-07-20 08:05:34
            Like I said, by caffine-iv2002-07-20 08:13:05
              But AFAIK by Pic2002-07-20 08:15:19
                I'm afraid.. by caffine-iv2002-07-20 08:16:23
                  Prototyping in C: by Pic2002-07-20 08:31:51
                    Say what? by caffine-iv2002-07-20 08:36:24
                      That works too by Pic2002-07-20 08:39:11
                        And whats the idea behind that? by caffine-iv2002-07-20 08:41:33
                          The advantage comes when.. by ToLazyToThink 2002-07-20 12:43:27
You are using header (.h) files. You put the prototypes in the header files and then other source (.c) files can use them without have to use "extern int foo(int *bar);". Also you usually put your caller documentation in comments above the prototype in the header file.

If you do c/c++ programming you'll appreciate prototypes the first time you have to debug a file that brings in all it's outside functions using extern. If things are named with even an ounce of common sense it's a lot easier to track down a function definition via the header files than figuring out exactly where that "extern" is pulling the function in from.

Also it allows you to place the interface to you module in a different file than the implementation.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)