home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20865 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!henson!reed!bowman
  3. From: bowman@reed.edu (BoBolicious)
  4. Subject: Re: List Manager help wanted
  5. References: <D2150096.mur2al@sproul.sproul.com> <HARDIN.93Jan6231614@dino.mcc.com>
  6. Organization: Reed College, Portland, OR
  7. Date: Thu, 7 Jan 1993 07:23:35 GMT
  8. Message-ID: <1993Jan7.072335.6559@reed.edu>
  9. Lines: 24
  10.  
  11. In article <HARDIN.93Jan6231614@dino.mcc.com> hardin@dino.mcc.com (John Hardin) writes:
  12. >Mark Sproul (Sproul@sproul.sproul.com) writes:
  13.  
  14. >>  On your other question, as far as I know, Think C does not support,
  15. >>       mystring="\p Something ";
  16.  
  17. >ThinkC DOES, in fact, support Pascal string literals.  P. 206 of the
  18. >ThinkC 5 manual states "To write a Pascal string constant, start the
  19. >string with "\P" or "\p"."
  20.  
  21. I missed the beginning of this thread, where mystring was apparently defined,
  22. but perhaps the key is that:
  23.  
  24. mystring = "\p somthing";
  25.  
  26. works if mystring is declared as an unsigned char *.
  27. It *doesn't* work if mystring is a Str255 or any other array construct where
  28. the actual storage is allocated on the stack.
  29.  
  30. cheers,
  31. bobo              In seeking the unattainable,
  32. bowman@reed.edu            simplicity only gets in the way.
  33. "On Monday, numbers floated everywhere, and the world was full of 
  34. approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93
  35.