17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

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

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

Built-in Functions<br />

n<br />

Assigns the number of characters read thus far by the call to<br />

scanf() to the corresponding argument. The corresponding<br />

argument shall be a pointer to an unsigned integer.<br />

An optional assignment-suppressing character (*) can be used<br />

after the format specifier to indicate that the conversion<br />

specification is to be done, but not saved into a corresponding<br />

variable. In this case, no corresponding argument variable<br />

should be passed to the scanf() function.<br />

A string composed of ordinary non-white space characters is<br />

executed by reading the next character of the string. If one of the<br />

inputted characters differs from the string, the function fails and<br />

exits. If a white-space character precedes the ordinary non-white<br />

space characters, then white-space characters are first read in<br />

until a non-white space character is read.<br />

White-space characters are skipped, except for the conversion<br />

specifiers [, c or n, unless a white-space character precedes the [<br />

or c specifiers.<br />

Availability:<br />

Requires:<br />

Examples:<br />

All Devices<br />

#USE RS232<br />

char name[2-];<br />

unsigned int8 number;<br />

signed int32 time;<br />

if(scanf("%u%s%ld",&number,name,&time))<br />

printf"\r\nName: %s, Number: %u, Time: %ld",name,number,time);<br />

Example<br />

Files:<br />

Also See:<br />

None<br />

RS232 I/O Overview, getc(), putc(), printf()<br />

set_cog_blanking( )<br />

Syntax:<br />

Parameters:<br />

set_cog_blanking(falling_time, rising_time);<br />

falling time - sets the falling edge blanking time.<br />

rising time - sets the rising edge blanking time.<br />

267

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

Saved successfully!

Ooh no, something went wrong!