12月 042019
 

一般的函数定义方式:

 

二般的函数定义方式:

圆括号中之写形参名,圆括号后面在定义参数类型,分号结束函数签名,然后花括号定义函数体。

显得少许麻烦,但是还真有这么写的,eg:bash源码中 lib/readline/histfile.c

 Posted by at 下午 3:38

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据