home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 15902 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.1 KB  |  44 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!gatech!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: huho@banruc60.BITNET
  4. Subject: (none)
  5. Message-ID: <secVLfuDUMRZNYGkUb@freya>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Organization: The Internet
  8. Date: Mon, 31 Aug 1992 12:51:55 GMT
  9. Lines: 33
  10.  
  11. Hello xperts,
  12.  
  13.  
  14. I'm writing an application using the Athena widgets (R5) and I'm a bit puzzled
  15. about one of the examples in contrib/examples/Xaw.
  16. The example I'm refering to is xtext.c. The following  lines are used to
  17. obtain the string from an asciiTextWidget named text.
  18.  
  19.    Arg args[1];
  20.     String str;
  21.  
  22.     XtSetArg(args[0], XtNstring, &str);
  23.     XtGetValues(text, args, ONE);
  24.  
  25. My question is :
  26. Is it necessary to use &str as an argument to XtSetarg? str is of type String,
  27. ,so it's already a pointer. Wouldn't  str without the & be sufficient?
  28.  
  29.                         Thanks for any information,
  30.                                 Van Hove Hugo
  31.  
  32. Hugo Van Hove
  33. University of Antwerp, RUCA
  34. AI project
  35. Groenenborgerlaan 171
  36. B-2020 Antwerpen, Belgium
  37.  
  38. Tel: +32 3 2180308
  39. Fax: +32 3 2180217
  40. Telex: RUCABI 33362
  41.  
  42. E-mail: huho@banruc60.bitnet
  43.  
  44.