From: Stas Sergeev <stsp@aknet.ru>
To: linux-msdos@vger.kernel.org
Subject: Re: Bug in DOSemu-FreeDOS-bin?
Date: Sat, 23 Aug 2003 19:05:21 +0400 [thread overview]
Message-ID: <3F4782B1.9070208@aknet.ru> (raw)
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 <stdio.h>
int main() {
printf("test\test\n");
}
---
The result will be:
test est
and with "test\\test\n" it will finally be
test\test
next reply other threads:[~2003-08-23 15:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-23 15:05 Stas Sergeev [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-08-14 9:05 Bug in DOSemu-FreeDOS-bin? (fwd) Bart Oldeman
2003-08-15 12:02 ` Bug in DOSemu-FreeDOS-bin? Claudia Neumann
2003-08-19 21:13 ` Claudia Neumann
2003-08-22 3:45 ` kontrare
2003-08-22 20:56 ` Claudia Neumann
2003-08-28 15:25 ` Bart Oldeman
2003-08-13 20:57 Claudia Neumann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F4782B1.9070208@aknet.ru \
--to=stsp@aknet.ru \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.