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.

with operands of type long.<br />

Include: <br />

Prototype: typedef struct { long quot, rem; } ldiv_t;<br />

Remarks: This is the structure type returned by the function ldiv.<br />

size_t<br />

Description: The type of the result of the sizeofoperator.<br />

Include: <br />

wchar_t<br />

Description: A type that holds a wide character value.<br />

Include: <br />

EXIT_FAILURE<br />

Description: Reports unsuccessful termination.<br />

Include: <br />

Remarks: EXIT_FAILUREis a value for the exit function to return an<br />

unsuccessful termination status<br />

Example: See exitfor example of use.<br />

EXIT_SUCCESS<br />

Description: Reports successful termination<br />

Include: <br />

Remarks: EXIT_SUCCESSis a value for the exit function to return a successful<br />

termination status.<br />

Example: See exitfor example of use.<br />

Standard C Libraries with Math Functions<br />

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

MB_CUR_MAX<br />

Description: Maximum number of charactersin a multibyte character<br />

Include: <br />

Value: 1<br />

NULL<br />

Description: The value of a null pointer constant<br />

Include: <br />

RAND_MAX<br />

Description: Maximum value capable of being returned by the randfunction<br />

Include: <br />

Value: 32767<br />

abort<br />

Description: Aborts the current process.<br />

Include: <br />

Prototype: void abort(void);<br />

printf ("Đó là một con số khủng khiếp \ n");<br />

}<br />

end_msg trống (void)<br />

{<br />

printf ("Bây giờ gocount một cái gì đó \ n");<br />

}<br />

Đầu vào:<br />

Với nội dung của UartIn.txt (sử dụng như stdininput cho giả lập):<br />

5<br />

Đầu ra:<br />

Nhập số yêu thích của bạn: 5<br />

Good Choice<br />

Đó là một con số tuyệt vời<br />

Bây giờ đi đếm một cái gì đó<br />

Đầu vào:<br />

Với nội dung của UartIn.txt (sử dụng như stdininput cho giả lập):<br />

42<br />

Đầu ra:<br />

Nhập số yêu thích của bạn: 42<br />

42 !?<br />

Đó là một con số khủng khiếp<br />

Bây giờ đi đếm một cái gì đó<br />

atexit (Tiếp theo)<br />

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ<br />

DS51456B trang 274<br />

atof<br />

2004 Microchip Technology Inc<br />

Mô tả: Chuyển đổi một chuỗi đến một độ chính xác gấp đôi giá trị dấu chấm<br />

động.<br />

Bao gồm:<br />

Prototype: atof đôi (const char * s);<br />

Đối số: s con trỏ đến chuỗi được chuyển đổi<br />

Quay trở lại giá trị: Trả về giá trị chuyển đổi nếu thành công; nếu không, trả về<br />

0.<br />

Ghi chú: Số lượng có thể bao gồm những điều sau đây:<br />

[Khoảng trắng] [dấu hiệu] chữ số [.digits]<br />

[{E | E} [dấu hiệu] chữ số]<br />

khoảng trắng tùy chọn, theo sau là một signthen tùy chọn một chuỗi<br />

của một hoặc nhiều digitswith một điểm thập phân tùy chọn, theo sau là một

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

Saved successfully!

Ooh no, something went wrong!