13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>stdio.hgetc(stream)getchar(stdin)fgets(*s, n, stream)gets(*s, n, stdin)ungetc(c, stream)fputc(c, stream)putc(c, stream)putchar(c, stdout)fputs(*s, stream)puts(*s)wchar.hgetwc(stream)getwchar(stdin)fgetws(*s, n,stream)-ungetwc(c, stream)fputwc(c, stream)putwc(c, stream)putwchar(c, stdout)fputws(*s, stream)-DescriptionSame as fgetc/fgetwc except that isimplemented as a macro.(FSS implementation)NOTE: Currently #defined asgetchar()/getwchar() because FILE I/O isnot supported. Returns the read character, orEOF/WEOF on error.Reads one character from the stdin stream.Returns the character read or EOF/WEOF onerror. Implemented as macro.(FSS implementation)Reads at most the next n-1 characters from thestream into array s until a newline is found.Returns s or NULL or EOF/WEOF on error. (FSSimplementation)Reads at most the next n-1 characters from thestdin stream into array s. A newline is ignored.Returns s or NULL or EOF/WEOF on error. (FSSimplementation)Pushes character c back onto the input stream.Returns EOF/WEOF on error.Put character c onto the given stream. ReturnsEOF/WEOF on error. (FSS implementation)Same as fpuc/fputwc except that isimplemented as a macro. (FSS implementation)Put character c onto the stdout stream. ReturnsEOF/WEOF on error.Implemented as macro. (FSS implementation)Writes string s to the given stream. ReturnsEOF/WEOF on error. (FSS implementation)Writes string s to the stdout stream. ReturnsEOF/WEOF on error. (FSS implementation)Direct input/outputstdio.hfread(ptr,size,nobj,stream)DescriptionReads nobj members of size bytes from the given stream intothe array pointed to by ptr. Returns the number of elementssuccessfully read. (FSS implementation)fwrite(ptr,size,nobj,stream) Writes nobj members of size bytes from to the array pointed toby ptr to the given stream. Returns the number of elementssuccessfully written. (FSS implementation)762

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

Saved successfully!

Ooh no, something went wrong!