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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!netnews!bandy
  3. From: bandy@netnews.jhuapl.edu (Mike Bandy)
  4. Subject: Re: wierd sas/c bug
  5. Message-ID: <BzL6sv.3Av@netnews.jhuapl.edu>
  6. Organization: JHU/Applied Physics Laboratory
  7. References: <BzIw0y.n31@ccu.umanitoba.ca>
  8. Date: Mon, 21 Dec 1992 01:58:07 GMT
  9. Lines: 25
  10.  
  11. umfehr06@ccu.umanitoba.ca (John Fehr) writes:
  12.  
  13. >I've been trying to compile an lpmud driver with sas/c, and I've
  14. >come upon a wierd bug...  In my main program file, I have the following
  15. >code:
  16.  
  17. >char master_file = "obj/master";
  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. Shouldn't that be?
  29. char *master_file = "obj/master";
  30.  
  31. -- 
  32.  
  33.     Mike Bandy
  34.     bandy@aplcomm.jhuapl.edu
  35.     Johns Hopkins University / Applied Physics Lab
  36.