From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stas Sergeev Subject: Re: Bug in DOSemu-FreeDOS-bin? Date: Sat, 23 Aug 2003 19:05:21 +0400 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <3F4782B1.9070208@aknet.ru> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Hello. kontrare wrote: > i dont know if this will help but i seem to remember > doing a bit of coding a ways back and using > fopen("c:\filename","r+b") in dos it wouldn't see the > file till i did fopen("c:\\filename","r+b") so it may be > the doshell is eating the first backslash This has to do nothing with dosshell neither with DOS or anything else of that kind. The special chars in C must be prepended with the backslash which discards their special meaning or adds a special meaning to a normal chars. Backslash itself is a special char also. Just run the program like that: --- #include int main() { printf("test\test\n"); } --- The result will be: test est and with "test\\test\n" it will finally be test\test