30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

Create successful ePaper yourself

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

Output:<br />

String = "12BGET3" long = 429164<br />

Stopped at: T3<br />

String = "0x1234Number" long = 4660<br />

Stopped at: Number<br />

String = "-123abc" long = 4294967173<br />

Stopped at: abc<br />

Standard C Libraries with Math Functions<br />

2004 Microchip Technology Inc. DS51456B-page 293<br />

system<br />

Description: Execute a command.<br />

Include: <br />

Prototype: int system(const char *s);<br />

Argument: s command to be executed<br />

Remarks: This function must be customized to be used as described (see<br />

pic30-libs). By default systemwill cause a reset if called with<br />

anything other than NULL. system(NULL)will do nothing.<br />

Example: /* This program uses system */<br />

/* to TYPE its source file. */<br />

#include /* for system */<br />

int main(void)<br />

{<br />

system("type sampsystem.c");<br />

}<br />

Output:<br />

System(type sampsystem.c) called: Aborting<br />

wctomb<br />

Description: Converts a wide character to a multibyte character. (See Remarks.)<br />

Include: <br />

Prototype: int wctomb(char *s, wchar_t wchar);<br />

Arguments: s points to the multibyte character<br />

wchar the wide character to be converted<br />

Return Value: Returns zero if s points to a null character; otherwise, returns 1.<br />

Remarks: The resulting multibyte character is stored at s. MPLAB C30 does not<br />

support multibyte characters with length greater than 1 character.<br />

wcstombs<br />

Description: Converts a wide character string to a multibyte string. (See<br />

Remarks.)<br />

Include: <br />

if (res

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

Saved successfully!

Ooh no, something went wrong!