home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!netnews!bandy
- From: bandy@netnews.jhuapl.edu (Mike Bandy)
- Subject: Re: wierd sas/c bug
- Message-ID: <BzL6sv.3Av@netnews.jhuapl.edu>
- Organization: JHU/Applied Physics Laboratory
- References: <BzIw0y.n31@ccu.umanitoba.ca>
- Date: Mon, 21 Dec 1992 01:58:07 GMT
- Lines: 25
-
- umfehr06@ccu.umanitoba.ca (John Fehr) writes:
-
- >I've been trying to compile an lpmud driver with sas/c, and I've
- >come upon a wierd bug... In my main program file, I have the following
- >code:
-
- >char master_file = "obj/master";
-
- >main() {
- >/* bunch of other variables declared */
- > printf("master_file='%s'\n",master_file);
- >...
-
- >When I compile and run this, I get:
-
- >master_file='bj/master'
-
- Shouldn't that be?
- char *master_file = "obj/master";
-
- --
-
- Mike Bandy
- bandy@aplcomm.jhuapl.edu
- Johns Hopkins University / Applied Physics Lab
-