Changeset c594489 in mainline for libc/include/stdlib.h


Ignore:
Timestamp:
2006-05-31T18:54:25Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad123964
Parents:
1c20e22
Message:

More things to make tetris helenos compatibile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/include/stdlib.h

    r1c20e22 rc594489  
    3636#define exit(status)    _exit((status))
    3737
     38#define RAND_MAX 714025
     39
     40extern long int random(void);
     41extern void srandom(unsigned int seed);
     42
     43static inline int rand(void)
     44{
     45        return random();
     46}
     47static inline void srand(unsigned int seed)
     48{
     49        srandom(seed);
     50}
     51
     52
    3853#endif
Note: See TracChangeset for help on using the changeset viewer.