I know access() isn't a strict Ansi C function, In *nix it comes from unistd.h, hence Unix standard, I think in borlan it is called something like file(), and is in a header much like dos.h or something like that.
Quote:
|
[C++ Error] cwfix.cpp(19): E2380 Unterminated string or character constant
|
The line:
printf("system call returned with errno: %s\n, WEXITSTATUS(ret));
should be:
printf("system call returned with errno: %s\n", WEXITSTATUS(ret));
And then it'll probably complain about WEXITSTATUS() undefined function... Since this is just a macro trying to give you some hints on the error status from the system call.
ie: 0 success, 1 some minor error, -1 some average error etc.