ID Number: Q45229
5.10 | 5.10
MS-DOS | OS/2
buglist5.10
Summary:
The code below causes the following error messages when compiled by
the Microsoft C Optimizing Compiler Version 5.10.
clyne.c(5) : warning C4021: 'lseek' : too few actual parameters
clyne.c(5) : warning C4061: long/short mismatch in argument :
conversion supplied
clyne.c(5) : fatal error C1001: Internal Compiler Error
(compiler file '@(#)code.c:1.46', line 439)
Contact Microsoft Technical Support
To work around the internal compiler error, you must correct the
incorrect syntax that caused the two warning messages.
Microsoft has confirmed this to be a problem in Microsoft C Version
5.10. We are researching the problem and will post new information as
it becomes available.
More Information:
The following code demonstrates the situation:
#include <stdio.h>
#include <io.h>
main() {
int a,b;
if (lseek(b,(long)(a*(21*27),SEEK_SET) < 0L));
}
The proper syntax is as follows:
if (lseek(b,(long)(a*(21*27)),SEEK_SET) < 0L);