#include <sys/fcntl.h>
#include <sys/file.h>
#include <unistd.h>
#include <stdio.h>
#include <termio.h>
#include <termios.h>

int main(){
  
  //fd is the file descriptor.  It is not a pointer, but rather a number
  //that unix assigns
  int fd, written;
  char BUF[BUFFSIZE];
  char amessage[]="h";
  //  char p;

  //p=2;  
  //pmessage is a pointer that is initialized to point to a string constant
  pmessage="h";

  
//  int open(char *name, int flags, int perms);
  //fd=open("/home/lances/readme.txt",O_RDWR,0);
  fd=open("/dev/ttyUSB0",O_RDWR);
  //written=write(fd,&amessage[0],1);
  
  printf("%d\n",BUFFSIZE);
  printf("%ld\n",fd);
  printf("%ld\n",written);
  return 0;
}

