Search:

Type: Posts; User: sonjared

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    2,031

    The C standard document offers a minimal portable...

    The C standard document offers a minimal portable definition:


    static unsigned long int next = 1;

    int rand(void) // RAND_MAX assumed to be 32767
    {
    next = next * 1103515245 + 12345;
    ...
  2. Replies
    9
    Views
    2,031

    The declaration is all you'll find in header...

    The declaration is all you'll find in header files, unless the function is also defined as a macro or template in C++. Some compilers will ship with source code for the standard libraries, and that...
Results 1 to 2 of 2