2005-12-21 [colin] 1.9.100cvs101
[claws.git] / src / common / w32_stdlib.c
1 /* w32_stdlib.c  - Posix emulation layer for Sylpheed (Claws)
2  *
3  * This file is part of w32lib.
4  *
5  * w32lib is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * w32lib is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18  * USA.
19  *
20  * For more information and a list of changes, see w32lib.h
21  */
22
23 #include <stdlib.h>
24 #include <string.h>
25
26 #include "w32lib.h"
27
28 long int random( void ){
29   return rand();
30 }
31
32 void srandom( unsigned int seed ){
33   srand( seed );
34 }
35
36 int truncate( const char *path, off_t length ){
37   return -1;
38 }