/[dtapublic]/sf_code/esrgpubs/acm0010/c_imp/rap/rap.cpp
ViewVC logotype

Contents of /sf_code/esrgpubs/acm0010/c_imp/rap/rap.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24 - (show annotations) (download)
Sat Oct 8 06:15:00 2016 UTC (7 years, 5 months ago) by dashley
File size: 890 byte(s)
Initial commit.
1 // rap.cpp : Defines the entry point for the console application.
2 //
3
4 extern "C" int main_c (int argc, char *argv[]);
5 /* Must use second source file. The .C extension on the file
6 ** containing main_c() causes the compiler to treat it as a
7 ** C rather than a C++ deck. A person wanting to recompile
8 ** on any SDK except MSVC++ must toss out this software module
9 ** (which is just a wrapper), and rename main_c() in RAP_C.C
10 ** to be main().
11 */
12
13 int main(int argc, char* argv[])
14 {
15 int return_value;
16 /* Return value from the "real" main. This is just a wrapper
17 ** to make coexistence with Microsoft Visual C++ more
18 ** pleasant.
19 */
20
21 return_value = main_c(argc, argv);
22 /* Call the real main function, and save the
23 ** return value.
24 */
25
26 return(return_value);
27 /* Return the return value to the external
28 ** environment.
29 */
30 }
31

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25