作者JustinHere (良葛格)
站内Programming
标题Re: [问题] 请问一种C的function宣告
时间Sat Jul 5 10:00:44 2008
※ 引述《Aioria (认真.就输了。)》之铭言:
: int efs_open (const char *path, int oflag, ...);
: 今天看到有人的function是这样宣告的↑
: 因为是第一次看到有人在function的参数中用...
: 对於这种用法感到很好奇,可是看了function的内容又看不太出个所以然
: 所以想请教大家,这里使用...有什麽特别的目的吗?它的用法又是...?
: 觉得很神奇为什麽这样compile也能过@@a
: p.s. 我用的compiler是Visual C++ 2005
:
: 感谢..
http://caterpillar.onlyfun.net/Gossip/CGossip/Variable-lengthArgument.html
--
良葛格学习笔记
http://caterpillar.onlyfun.net/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.252.42.171