14 #define OSPL_MAIN main 16 #include "os_stdlib.h" 17 int main (
int argc,
char* argv[]);
19 (HINSTANCE hInst, HINSTANCE hPrevInst, LPTSTR lpCmdLine,
int nCmdShow)
23 argc = os_mainparams (lpCmdLine, argv);
24 return main (argc, argv);
37 #ifndef OSPL_WINCE_HAS_MSVCRT 38 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
int my_int)
41 _itoa(my_int, my_buffer, 10);
42 return *
this << my_buffer;
44 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
unsigned int my_int)
47 _itoa(my_int, my_buffer, 10);
48 return *
this << my_buffer;
50 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
long my_long)
53 _itoa(my_long, my_buffer, 10);
54 return *
this << my_buffer;
56 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
unsigned long my_long)
59 _itoa(my_long, my_buffer, 10);
60 return *
this << my_buffer;
62 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
float my_float)
65 sprintf(my_buffer,
"%f", my_float);
66 return *
this << my_buffer;
68 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
const void* my_pointer)
71 sprintf(my_buffer,
"%p", my_pointer);
72 return *
this << my_buffer;
74 std::basic_ostream<char,std::char_traits<char>> &std::basic_ostream<char,std::char_traits<char>>::operator <<(
bool my_bool)
76 return *
this << (my_bool ?
"true" :
"false");