Enrico Forestieri <[EMAIL PROTECTED]> writes:
>> Do you need to consider also mixed \ and / delimiters, as in "foo/bar\baz" ?
> I was not thinking of that, even if I just checked that it works.

Are you sure? Won't
        p = strrchr(arg, '/');
return
        "bar\baz"
?

What about "foo/bar/"? Will the code handle this safely?

> I simply had in mind that a Windows user would probably use "\"
> rather than "/" as a path separator.

Sure. That's why posting patches for review is a good idea.

Angus





Reply via email to