home bbs files messages ]

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

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

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

   Message 242,677 of 243,242   
   Keith Thompson to Michael S   
   Re: srand(0)   
   31 Dec 25 16:34:44   
   
   From: Keith.S.Thompson+u@gmail.com   
      
   Michael S  writes:   
   > On Wed, 31 Dec 2025 15:00:24 -0800   
   > Keith Thompson  wrote:   
   [...]   
   >> If I were going to look into the behavior on Windows, I'd probably   
   >> want to use Windows native features.  (I tried my test on Cygwin,   
   >> and the callee wasn't invoked.)   
   >   
   > That's likely because under Windows callee is named callee.exe.   
   > I didn't try on cygwin, but that was the reason of failure under msys2.   
   > Also, I am not sure if slash in the name is allowed. May be, backslash   
   > is required.   
      
   No, that's definitely not it.  Cygwin emulates a Unix-like system   
   on top of Windows.  It creates executables with a ".exe" suffix,   
   but plays some tricks so that "foo.exe" also looks like "foo".   
   Also, Cygwin uses "/" as a directory separator.  When I modified   
   the caller program to set argv[0], it worked correctly.   
      
   I've updated the caller to show the result of execve() (which   
   normally doesn't return).  It returns -1 to indicate an error and   
   sets errno to 7 (E2BIG, Argument list too long) -- which is a bit   
   odd, but there's no E2SMALL code.   
      
   [...]   
      
   --   
   Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com   
   void Void(void) { Void(); } /* The recursive call of the void */   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

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


(c) 1994,  bbs@darkrealms.ca