
#include <stdio.h>
#include <string.h>

class MyType 
{   
 public: 
   MyType(char*s) : str(s),len(strlen(s)) 
   {  printf("ctor: %p, \"%s\"\n", this, s);
   } 
   
   MyType(const MyType& m):str(m.str),len(m.len) 
   {  printf("copy_ctor: %p\n", this);
   } 
   
   ~MyType()
   {  printf("dtor: %p", this);
   }
    
   char*str; 
   int  len; 
   
 private: 
   MyType(); 
};//MyType 
 
 
void Foo(int x, ...){  } 
 
int main() 
{   
   char c_str[]="EinC-String"; 
   MyType mt(c_str); 
   Foo(1,mt); 
   return 0; 
} 
