Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!pacbell!att!ihuxy!vg55611 From: vg55611@ihuxy.ATT.COM (Gopal) Newsgroups: comp.sys.ibm.pc Subject: Re: pathnames Message-ID: <2847@ihuxy.ATT.COM> Date: 11 Feb 89 22:36:59 GMT References: <2569@pegasus.ATT.COM> <3847@cbnews.ATT.COM> <662@mks.UUCP> <10353@ut-emx.UUCP> <1623@stratus.UUCP> Reply-To: vg55611@ihuxy.UUCP (55611-Gopal,V.P.) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 27 In article <1623@stratus.UUCP> gbs@stratus.UUCP (George B. Smith) writes: [stuff deleted] >I have to whole heartedly agree with Gerry on this one. I would like >to ask all software authors, commercial and public domain, please make >sure your programs can handle either the forward slash or back slash >character as the separator. [stuff deleted] !And it is very easy to do, as I said before. All a program has to do !is find out the current setting of the switch char. This is a trivial !task for a program. In fact, in Turbo C v2.0, in the file getopt.c !supplied by Borland, there is the 3 lines necessary to get the current !switch char. Then, if the current switch char is '-', then [stuff deleted] There is an even simpler method: allow only "-" to be used as the switchar in your programs, and then whenever you read a pathname from the user, substitute all occurences of "/" with "\". Venu P. Gopal UUCP: att!ihuxy!vg55611 Internet: vg55611@ihuxy.att.com BITNET: com%"vg55611@ihuxy.att.com" or com%"vg55611%ihuxy@research.att.com"