home bbs files messages ]

Just a sample of the Echomail archive

COMPLANC:

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

 Message 242,541 of 243,097 
 Keith Thompson to Michael Sanders 
 Re: srand(0) 
 23 Dec 25 02:16:39 
 
From: Keith.S.Thompson+u@gmail.com

Michael Sanders  writes:
> On Mon, 22 Dec 2025 13:18:19 +0100, Janis Papanagnou wrote:
>> There's number sequence generators that produce 0 sequences if seeded
>> with 0. And maybe the comment in 'man 3 rand', "If no seed value is
>> provided, the rand() function is automatically seeded with a value
>> of 1.", may have fostered his doubt.
>
> Janis - naive question for you...
>
> How do I bring up *posix only* man pages using 3?
>
> I see no difference when invoking any of:
>
> man 3 srand
> or: man 3 posix srand
> or: man posix 3 srand
>
> What I'm doing wrong here?

On Debian, Ubuntu, and similar systems, you can install the
"manpages-posix" (section 1) and "manpages-posix-dev" (sections 3
and 7) packages.  You can then view the POSIX man page for srand
by typing any of:

    man 3posix srand
    man -s 3posix srand
    man srand.3posix

I'd expect similar packages to be available on (some) other systems.

--
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