C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
__cdecl
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Keyword:   __cdecl
 
  Syntax:    __cdecl declarator
 
  Summary:   Instructs the compiler to use the C naming and calling
             conventions for the variable or function. In the C naming
             convention, the compiler adds an underscore to the beginning
             of a name and maintains case-sensitivity. In the C calling
             convention, function arguments are pushed from right to left.
 
             Place the __cdecl modifier before a variable or a function
             name; it can appear before or after the __near and __far
             modifiers. Because the C naming and calling conventions are
             the default, the only time you need to use __cdecl is when
             you've specified the /Gc (Pascal/FORTRAN) or the /Gr
             (fastcall) compiler options. For compatibility with previous
             versions, both cdecl and _cdecl are synonyms for __cdecl.
 
  See also:  __fastcall, __fortran, __pascal
                                    -♦-