To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 39
38  |  40
Subject: 
IC Problems
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Thu, 8 Feb 1996 17:43:30 GMT
Original-From: 
Brian Peter Schmalz <[csc_schmalzb@lawrence.edu]StopSpammers[]>
Viewed: 
2083 times
  
OK all of you IC gurus. How come I can't do this:

int m()
{
int *address;

address=&a0;
address++;
}

a0 is a variable defined in an .icb file. I also can't do something like

address=address+2;
or
address[4]=7;

Why not? This is all pretty standard C stuff, isn't it? If there is a really
good reason why this will never work in IC, then how can I define an array of
16 variables in an .icb file, and then read them in a .c file? (Besides
referring to all of their names. I want to do it in a loop.)

Any clues?

*Brian Schmalz
/------------------------------------------\
|               Brian Schmalz              |
|             Lawrence University          |
|                Appleton, WI              |
|        Brian.P.Schmalz@Lawrence.edu      |
| http://ellen.acad.lawrence.edu/~schmalzb |
|            ftp://143.44.104.32           |
\------------------------------------------/



1 Message in This Thread:

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

Custom Search

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