Re: Checking param string
Flash Gordon wrote:
.... snip ...
>>
.... snip ...
>
The OP is more likely to find the POSIX function getopt or the
GNU function getopt_long useful since he is almost certainly
trying to replicate their behaviour. For help with the POSIX
getopt function the OP should ask in comp.unix.progr ammer,
possibly one of the GNU groups for getopt_long.
No he shouldn't. He should learn to do these basic operations long
before using those.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
Flash Gordon wrote:
Malcolm McLean wrote, On 20/02/08 18:00:
>"david" <David.Abdurach manov@gmail.com wrote in message
>>
>>
>>>
>>Two questions:
>>1) How can I compare parameters to string, maybe I should use
>> sprintf and later try comparing? Or maybe there is direct
>> way of doing it?
>>2) How can I get first char of the first parameter? (It's
>> kinda hard to understand how to write this)
>>Two questions:
>>1) How can I compare parameters to string, maybe I should use
>> sprintf and later try comparing? Or maybe there is direct
>> way of doing it?
>>2) How can I get first char of the first parameter? (It's
>> kinda hard to understand how to write this)
>>
>When you've sorted this out you might like to see my options
>parser, on the website.
>When you've sorted this out you might like to see my options
>parser, on the website.
The OP is more likely to find the POSIX function getopt or the
GNU function getopt_long useful since he is almost certainly
trying to replicate their behaviour. For help with the POSIX
getopt function the OP should ask in comp.unix.progr ammer,
possibly one of the GNU groups for getopt_long.
before using those.
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
--
Posted via a free Usenet account from http://www.teranews.com
Comment