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 / 2852
  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)
 
  Re: Pass by reference
 
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... (...) (22 years ago, 16-Sep-02, to lugnet.robotics.rcx.legos)
 
  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)

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