home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 262,258 of 264,096   
   =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Lawrence D'Oliveiro   
   Re: Fun trick   
   13 Jan 25 17:55:59   
   
   From: arne@vajhoej.dk   
      
   On 1/13/2025 5:18 PM, Lawrence D'Oliveiro wrote:   
   > On Mon, 13 Jan 2025 13:45:50 -0500, Arne Vajhøj wrote:   
   >> There are probably a lot of shareable images written in C out there   
   >> where the developer has no idea that they are runnable or what code will   
   >> run.   
   >   
   > If it has no main(), then nothing will run.   
      
   That is what the developer thinks.   
      
   But it is not so.   
      
   $ type lawrence.c   
   #include    
      
   int foobar()   
   {   
        printf("Hi Lawrence\n");   
        return 1;   
   }   
   $ cc lawrence   
   $ link/share  lawrence   
   $ run lawrence   
   Hi Lawrence   
      
   No main() and it runs anyway.   
      
   Arne   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca