View Single Post
Old 07-25-2003, 07:43 PM   #7 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote