> The program and the file (the latter begin named foo) are in the same
> directory. If I just pass 'foo' to fopen(), NULL is returned. If I pass
> the full path '\efl\foo', fopen succeeds.
>
> Is it a known behavior ?
i've just written a small test :
#include <stdio.h>
int main()
{
FILE *f;
f = fopen("glassy_nocomp.edj", "rb");
if (!f)
{
printf("relative path: error\n");
}
else
{
printf("relative path: success\n");
fclose(f);
}
f = fopen("\\efl\\glassy_nocomp.edj", "rb");
if (!f)
{
printf("full path: error\n");
}
else
{
printf("full path: success\n");
fclose(f);
}
return 0;
}
with cegcc, no problem, f is never NULL
with mingw32ce, f is NULL when using relative path, and not NULL when
using full path
Vincent Torri
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel