hi, when i compile my c code at visual C++ 6.0, i got some errors and i can't fix it, please help..
my C file uses the unistd.h and the code is
/* This is defined as a real library function to allow autoconf
to verify its existence. */
int ftruncate(int, off_t);
__CRT_INLINE int ftruncate(int __fd, off_t __length)
{
return _chsize (__fd, __length);
}
errors:
error C2081: 'off_t' : name in formal parameter list illegal
error C2054: expected '(' to follow '__CRT_INLINE'
error C2146: syntax error : missing ')' before identifier '__length'
error C2081: 'off_t' : name in formal parameter list illegal
error C2082: redefinition of formal parameter 'ftruncate'
error C2146: syntax error : missing ',' before identifier '__length'
error C2059: syntax error : ')'
error C2143: syntax error : missing ';' before '{'