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,684 of 243,242    |
|    bart to All    |
|    Re: srand(0)    |
|    01 Jan 26 20:28:52    |
      From: bc@freeuk.com              On 01/01/2026 19:03, Lawrence D’Oliveiro wrote:       > On Thu, 1 Jan 2026 14:05:29 +0000, bart wrote:       >       >> On 01/01/2026 01:03, Lawrence D’Oliveiro wrote:       >>>       >>> On Wed, 31 Dec 2025 22:57:55 +0000, bart wrote:       >>>       >>>> But, there is a difference between argv[0] and       >>>> GetModuleFileName().       >>>       >>> So the latter cannot be used as a simple substitute for the former,       >>> as you might have led us to believe.       >>       >> It depends on your needs.       >       > You neglected to mention that when offering the substitute before       > though, didn’t you?                     FFS, why are you always looking for some argument?              Have the last word if you like. If it makes you happier, I will admit I       was deliberately misleading and totally wrong.              But about what, I don't know! FWIW, I first mentioned GetModuleFileName       as a possibility when argv[0] was not available.              So I now withdraw that suggestion. That means that if argv[0] isn't       available, then you're fucked, since there are apparently no workarounds       that would be 100% equivalent to what argv[0] would have provided.              --- 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