I had a look through the examples and could not find gets() used anywhere, infact the only reference I can find to gets() is in the book???? If you have a look at GET_STRING() in the input.c file this uses the getc() (ANSI standard) routine. Jason >Darren Logan wrote: >> var = GETC works ok but not GETS(). >> Instead, GETS() seems to hang the PIC. > >It's gets(), surely? If it is the ANSI C function, it is defined as >using getc() until it receives an end of line marker. Are you sending >characters followed by a carriage return? > >-- >James Cameron (cameron@stl.dec.com) > >OpenVMS, Linux, Firewalls, Software Engineering, CGI, HTTP, X, C, FORTH, >COBOL, BASIC, DCL, csh, bash, ksh, sh, Electronics, Microcontrollers, >Disability Engineering, Netrek, Bicycles, Pedant, Farming, Home Control, >Remote Area Power, Greek Scholar, Tenor Vocalist, Church Sound, Husband. > >"Specialisation is for insects." -- Robert Heinlein. > >