11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsGETSSynopsis#include char * gets (char * s)DescriptionThe gets() function reads a line from standard input into the buffer at s, deleting the newline (cf.fgets()). The buffer is null terminated. In an embedded system, gets() is equivalent to cgets(), andresults in getche() being called repeatedly to get characters. Editing (with backspace) is available.Example#include voidmain (void){char buf[80];}printf("Type a line: ");if(gets(buf))puts(buf);See Alsofgets(), freopen(), puts()Return ValueIt returns its argument, or NULL on end-of-file.150

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!