[A89] Re: String Search for \


[Prev][Next][Index][Thread]

[A89] Re: String Search for \




Try strchr(string, '\\')

Because the \ is used to trap certain special characters (\n, \r, etc...)
you have to specifically doubletrap itself.



At 12:10 PM 6/26/01 EDT, you wrote:
>How do you search a character array for the \ character?
>
>I've tried strchr(string, '\'') but that doesn't seem to work. 
>
>Thanks,
>Brett
>
>
>
>




References: