To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2854
2853  |  2855
Subject: 
Re: Pass by reference
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 16 Sep 2002 11:55:37 GMT
Viewed: 
2352 times
  
More specifically, how can you pass by reference to a thread?? I thought a
thread could only take chracter arguments in an array?
Thanks

"Ralph Clark" <ralph.clark@ntlworld.com> wrote in message
news:H2HwuD.L6L@lugnet.com...
Hi. Do we have pass by reference in the current version of legOS?

If we don't, I'd be very grateful if anyone could give me a simple example
of how to do the same thing in C using pointers and whatever.





Message has 1 Reply:
  Re: Pass by reference
 
Ralph, The second parameter to the task is a pointer to an array of pointers. Those pointers (under DOS and other OSes) normally point to parameters on the command line (string data). However, there is no reason to not use them for other data types. (...) (22 years ago, 16-Sep-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Pass by reference
 
Hi. Do we have pass by reference in the current version of legOS? If we don't, I'd be very grateful if anyone could give me a simple example of how to do the same thing in C using pointers and whatever. (22 years ago, 15-Sep-02, to lugnet.robotics.rcx.legos)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR