0
我想解析一個key1=val1, key2=val2, etc
表格的選項列表(類似mount -o
的選項)。 getsubopt()
功能對於此任務似乎很完美(http://www.gnu.org/s/hello/manual/libc/Suboptions.html)。但是,當我嘗試使用gcc編譯我的代碼時,我得到:如何編譯使用getsubopt()的代碼?
warning: implicit declaration of function ‘getsubopt’
和程序段錯誤當我運行它。
I #included''但編譯器不接受聲明。 –
2011-05-13 08:09:20