home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17603 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.2 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!umfehr06
  3. From: umfehr06@ccu.umanitoba.ca (John Fehr)
  4. Subject: wierd sas/c bug
  5. Message-ID: <BzIw0y.n31@ccu.umanitoba.ca>
  6. Sender: news@ccu.umanitoba.ca
  7. Nntp-Posting-Host: ccu.umanitoba.ca
  8. Organization: University of Manitoba, Winnipeg, Canada
  9. Date: Sat, 19 Dec 1992 20:10:09 GMT
  10. Lines: 30
  11.  
  12. I've been trying to compile an lpmud driver with sas/c, and I've
  13. come upon a wierd bug...  In my main program file, I have the following
  14. code:
  15.  
  16. char master_file = "obj/master";
  17.  
  18. ...
  19. main() {
  20. /* bunch of other variables declared */
  21.     printf("master_file='%s'\n",master_file);
  22. ...
  23.  
  24. When I compile and run this, I get:
  25.  
  26. master_file='bj/master'
  27.  
  28. Has anyone run across this bug?  That printf was the first statement
  29. that is executed in the program, so master_file shouldn be obj/master
  30. at that point.  
  31.   Any help would be greatly appreciated.
  32.  
  33.  
  34.    John
  35.     umfehr06@ccu.umanitoba.ca
  36.  
  37. -- 
  38. -----------------------------------------------------
  39. -  John Fehr                        -    DoD#505    -
  40. -  umfehr06@ccu.umanitoba.ca        -    GPz550     -
  41. -  umfehr06@silver.cs.umanitoba.ca  -  A3000 kicks! -
  42.