View Single Post
  #5   Spotlight this post!  
Unread 01-01-2008, 21:17
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 412
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: How to use the data obtain in one C file to another C file?

tommy_chai: Just so you know, ChiefDelphi isn't primarily for programming questions, so you might get a faster and/or more complete response in a different forum. http://www.chiefdelphi.com/forums/sh...ad.php?t=29944

If you're using ANSI C, this is typically done using the extern keyword. The other option is to use "getter" functions, like you would in object-oriented programming.
Note that you'll probably want to put the declaration of Coordinate and your functions into a header file, which you can include in both of your c files.
Hope this helps.
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...