Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
3,899,951,705 visitors served.
forum Join the Word of the Day Mailing List For webmasters
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

function prototype

   Also found in: Wikipedia 0.01 sec.
function prototype
In programming, a declaration of a function to the compiler indicating what types of parameters are passed to it and what value is returned. The compiler can then report an error if a function within the program is not written to conform to the prototype. See function.

The following C example is the simplest prototype. The function displays "Hello World" on screen without receiving any parameters or returning any values to the calling instruction. "Void" means "nothing."

         Prototype
         void printHelloWorld(void);


         Function
         void printHelloWorld(void)
         {
         printf ("Hello World\n");
         }


Prototypes can be much more complicated as in this C example where five parameters are passed to a graphics function.

  void   DrawTransparentBitmap(HDC hdc,
                HBITMAP hBitmap,
                int xStart,
                int yStart,
                COLORREF cTransparentColor);


Want to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit the webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Feedback
Mentioned in?  References in periodicals archive?   Encyclopedia browser?   Full browser?
No references found
 
Interoperability through the Milkyway Database C-API The Milkyway C-API comprises the function prototypes and linkable libraries that allow a stand-alone program to read and write data in the Milkyway database.
The function prototype display is an excellent addition, making the code-writing experience much easier.
Complete system test and evaluation of full function prototype and validate simulations.
 
 
 
Encyclopedia
?

Terms of Use | Privacy policy | Feedback | Advertise with Us | Copyright © 2012 Farlex, Inc.
Disclaimer
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional.