Re: how to design an testing example



Subbu said:

Hi,

While passing the file name use "\\" insted of "\".

No. File names might not even /have/ a \ character as part of their name. At
least as far as I'm aware, none of the files on my filesystem does, and
even if the OP's system does, the advice doesn't apply to the OP anyway.
The reason for using \\ instead of \ when you want a \ in astring literal
is nothing to do with files and everything to do with string literals.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • Re: Whats the guideline for dealing with unwanted chars in input stream?
    ... > other character in the stream so that the following "getchar" will ... Nonsense. ... Richard Heathfield ... rjh at above domain ...
    (comp.lang.c)
  • Re: Searching string for characters
    ... code where I want to test to see if a certain character char_a is in ... the testlist string. ... Richard Heathfield ... rjh at the above domain, ...
    (comp.lang.c)
  • Re: random password generator
    ... strangely if I give stdin EOF when asked for the character set... ... Richard Heathfield ... rjh at the above domain, ...
    (comp.lang.c)
  • Re: Algorithm Question
    ... Richard Heathfield wrote: ... write the current character to your output file. ... create another overpriced and dangerous drug for Western complaints, ... If this application is health care, I'd remark that the Veterans ...
    (comp.programming)
  • Re: Segfault City
    ... Richard Heathfield wrote: ... What, if anything, can it be guaranteed will be> '9' in standard C? ... I was testing the character 9 which isn't the ... The C Standard does not guarantee that. ...
    (comp.lang.c)