previous | start | next

getxs function



  The C-library function to read an input line (discarding the
  newline) is  
  
              gets(char *str) 

  char line[50];

  gets(line); // Reads input line up to newline, stores in line
              with a null byte at the end 


  The function getsx is like gets, except that 

  Characters are typed as pairs of hex digits. 

  Non hex digit characters are ignored by getsx.
  
  getsx stops when a newline is encountered.



previous | start | next