[FW]C Coding Standards Quick Reference[4]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

A return type of a function shall always be explicitly specified.

A function shall never return a reference or a pointer to a local variable.

Functions that return pointers shall return a NULL on a failure condition.

If a function can fail, the function shall return a status indicating a failure.

Declaring the magnitude of a single dimensional array in an argument declaration shall not be used.

A main function shall return a value indication the completion status.

Structures shall not be passed as arguments to functions and functions shall not return structures.

本文关键:[FW]C Coding Standards Quick Reference
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top