--- In [email protected], "Brett McCoy" <[EMAIL PROTECTED]> wrote:
>
> On Thu, Nov 6, 2008 at 7:54 AM, Tamas Marki <[EMAIL PROTECTED]> wrote:
> 
> > Sorry for the nitpick, but you forgot to escape the backslashes (and
> > for newbies it could produce a not too obvious error). The correct way
> > would be:
> >
> > fopen("C:\\Users\\bmccoy\\Music\\myfile.txt", "w");
> 
> That's required for Windows paths now? I don't do much Windows
> programming these days, but don't recall having to escape the
> backslashes in the past.

$ cat path.c
#include <stdio.h>
int main(void)
{
    printf("C:\windows\n");
    return 0;
}

$ gcc path.c
path.c:5:12: warning: unknown escape sequence '\w'

$ a.out
C:windows

Don't see how it could have worked... ?

Reply via email to