On Mon, 14 Jan 2008, Jan Pechanec wrote:

>
>       hey all,
>
>       I would like to parse a PKCS11 draft URI scheme which looks like
> this:
>
>       pkcs11:[token=<label>][;manuf=<label>][;serial=<label>]...]
>
>       so basically, parsing "xxx=yyy;abc=efg;..."-like string would be
> fine. getsubopt(3c) is a cool thing but uses ',' instead of ';'.
>
>       I don't believe I must write my own funtion, I think there must be
> something somewhere in Solaris libraries I could use.
>
>       any advice?

   strtok()
      A sequence of calls to strtok() breaks the string pointed to
      by  s1 into a sequence of tokens, each of which is delimited
      by a byte from the string pointed to by s2. The  first  call
      in  the  sequence  has s1 as its first argument, and is fol-
      lowed by calls with a null pointer as their first  argument.
      The  separator string pointed to by s2 can be different from
      call to call.
[ ... ]

isn't it that ?

FrankH.


>
>       thanks, Jan.
>
> -- 
> Jan Pechanec
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>

------------------------------------------------------------------------------
No good can come from selling your freedom, not for all the gold in the world,
for the value of this heavenly gift far exceeds that of any fortune on earth.
------------------------------------------------------------------------------
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to