home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umfehr06
- From: umfehr06@ccu.umanitoba.ca (John Fehr)
- Subject: wierd sas/c bug
- Message-ID: <BzIw0y.n31@ccu.umanitoba.ca>
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Sat, 19 Dec 1992 20:10:09 GMT
- Lines: 30
-
- 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'
-
- Has anyone run across this bug? That printf was the first statement
- that is executed in the program, so master_file shouldn be obj/master
- at that point.
- Any help would be greatly appreciated.
-
-
- John
- umfehr06@ccu.umanitoba.ca
-
- --
- -----------------------------------------------------
- - John Fehr - DoD#505 -
- - umfehr06@ccu.umanitoba.ca - GPz550 -
- - umfehr06@silver.cs.umanitoba.ca - A3000 kicks! -
-