home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!gatech!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: huho@banruc60.BITNET
- Subject: (none)
- Message-ID: <secVLfuDUMRZNYGkUb@freya>
- Sender: daemon@athena.mit.edu (Mr Background)
- Organization: The Internet
- Date: Mon, 31 Aug 1992 12:51:55 GMT
- Lines: 33
-
- Hello xperts,
-
-
- I'm writing an application using the Athena widgets (R5) and I'm a bit puzzled
- about one of the examples in contrib/examples/Xaw.
- The example I'm refering to is xtext.c. The following lines are used to
- obtain the string from an asciiTextWidget named text.
-
- Arg args[1];
- String str;
-
- XtSetArg(args[0], XtNstring, &str);
- XtGetValues(text, args, ONE);
-
- My question is :
- Is it necessary to use &str as an argument to XtSetarg? str is of type String,
- ,so it's already a pointer. Wouldn't str without the & be sufficient?
-
- Thanks for any information,
- Van Hove Hugo
-
- Hugo Van Hove
- University of Antwerp, RUCA
- AI project
- Groenenborgerlaan 171
- B-2020 Antwerpen, Belgium
-
- Tel: +32 3 2180308
- Fax: +32 3 2180217
- Telex: RUCABI 33362
-
- E-mail: huho@banruc60.bitnet
-
-