home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
CLIPPER
/
MISC
/
EMXLIB8F.ZIP
/
EMX
/
LIB
/
SYS
/
CHSIZE.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-01-02
|
341 b
|
19 lines
/* sys/chsize.c (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes */
#include <sys/emx.h>
#include <os2emx.h>
#include "syscalls.h"
int __chsize (int handle, long length)
{
ULONG rc;
rc = DosSetFileSize (handle, length);
if (rc != 0)
{
_sys_set_errno (rc);
return (-1);
}
return (0);
}