When I run the program below the open () statement always returns -1 even if the file exists.
Am I doing something wrong?
#include
#include
#include
#include
#include
int rc;
const char *dbname = "/temp/my_db.sql3";
int MAMain() {
rc = open( dbname, O_WRONLY );
fprintf(stderr, "rc= %-3d %s \n", rc, dbname);
close(rc);
FREEZE;
return 0;
}
