View Single Post
  #2   Spotlight this post!  
Unread 20-05-2012, 16:45
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Get cRIO device name?

Yes, you can get the host name by:
Code:
#include <hostlib.h>
 
char hostName[MAXHOSTNAMELEN];
 
gethostname(hostName, sizeof(hostName));
printf("Host: %s\n", hostName);
__________________
Reply With Quote