Mail Archives: djgpp/1999/08/23/20:21:34
Laurynas Biveinis schrieb:
> Sascha Zapf wrote:
> >
> > Thanx for the Patch....
> >
> > But my Problem goes on...
>
> <snip>
>
> OK, I found the real problem - TVision does not recognize
> DOSish backslash '\', only UNIXish slashes '/' as directory
> separators. So when you pass "c:\\", it looks for last
> directory separator - strrchr() function looks for '/' and
> returns NULL... Then (size_t)(end - dir + 1) gives a _huge_
> value...
>
> A very quick workaround - change "c:\\" to "c://" in your code.
>
> Now about the real fix. Salvador, isn't somewhere in TV
> function for converting backslashes to slashes? It should
> go OK here. (Just I'm afraid that not only here, but in
> many other places...)
>
> Laurynas Biveinis
O.K....Thats O.K for me, but all user of my progs want to use "c:\" coz
they are using Dos, not Unix.
I think a special Unix/Dos Version of TV just with #define MSDOS or
#define would be more komfortable...
Sascha
- Raw text -