home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 19777 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  2.9 KB

  1. Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: C pointer question
  5. Date: 23 Dec 1992 13:01:06 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 53
  8. Distribution: world
  9. Message-ID: <1h9nuiINN1c9@gap.caltech.edu>
  10. References: <1992Dec23.002554.19604@netcom.com>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <1992Dec23.002554.19604@netcom.com>, despair@netcom.com (Scott Hanson) writes:
  15. =I am porting some C code to the VAX, and am having many problems.  One
  16. =of them was fixed by DEC Support (after a lot of feeling around) by changing
  17. =this:
  18. =void foo(char a[])
  19. ={
  20. =bar(a);
  21. =}
  22. =
  23. =to this:
  24. =void foo(char a[])
  25. ={
  26. =bar(&a);
  27. =}
  28. =
  29. =bar wants a char *, foo is passed a char *.  What am I doing wrong?
  30. =What is VMS C doing to my previously working code?  Any suggestions?
  31.  
  32. If what you say is true (hey, I belive you THINK it's true, but you've removed
  33. most of the code that tells us what's going on), it looks like you've found a C
  34. bug.
  35.  
  36. But we'll never know unless you send us some code that demonstrates the problem
  37. (yes, I'm working on a second version of my "How to ask questions in INFO-VAX"
  38. monthly posting).
  39.  
  40. Let me be a little more specific about what I was saying.  You've run across a
  41. problem.  You don't know what exactly caused the problem (otherwise did you
  42. call CSC and/or post to this newsgroup?)  Rather than posting the problem in
  43. its entirety (i.e., a program that demonstrates the problem) you posted a
  44. description of what you THINK the problem is.  Well, since you don't (by
  45. definition) know what the REAL problem is, WHAT MAKES YOU THINK THAT YOUR
  46. SUMMARY OF THE PROBLEM REALLY TELLS US WHAT THE PROBLEM IS?
  47.  
  48. Please:  Post the simplest example you can come up with that demonstrates the
  49. "problem."  Then you'll have everyone who reads this group and is interested in
  50. the problem working on it (and I can pretty much guarantee that those working
  51. on the problem will include myself, Jerry Leichter, Jamie Hanrahan, and Ehud
  52. Gavron [yes, three of of HAVE been known to flame;  but we are also known for
  53. spending LOTS of time trying to pin down this sort of problem]).
  54.  
  55. As it is, you've been so goddamned vague, nobody's likely to be able to help
  56. you.
  57.  
  58. So, please:  Send us a program that demonstrates the alleged problem.
  59. --------------------------------------------------------------------------------
  60. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  61.  
  62. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  63. understanding of astronomy is purely at the amateur level (or below).  So
  64. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  65. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  66. hold me responsible for it, but my organization had nothing to do with it.
  67.