2016-04-05 14:33:00

by Shahbaz Youssefi

[permalink] [raw]
Subject: RE: [PATCH v4] sscanf: implement basic character sets

Note: CC me

I just read on lwn about the implementation of `%[` in sscanf. Just
wanted to point out my implementation (which supports `]` ranges (`-`)
and negation (`^`)) and let you know that you are free to take
code/inspiration from it:

https://github.com/ShabbyX/kio/blob/master/src/scanf.c#L398


2016-04-05 17:25:30

by Jessica Yu

[permalink] [raw]
Subject: Re: sscanf: implement basic character sets

+++ Shahbaz Youssefi [05/04/16 10:32 -0400]:
>Note: CC me
>
>I just read on lwn about the implementation of `%[` in sscanf. Just
>wanted to point out my implementation (which supports `]` ranges (`-`)
>and negation (`^`)) and let you know that you are free to take
>code/inspiration from it:
>
>https://github.com/ShabbyX/kio/blob/master/src/scanf.c#L398

Thanks Shahbaz, this is helpful. You are of course welcome to
submit a patch adding ranges and other missing features to the
kernel sscanf() as well, if that's something you're interested in
doing.

Jessica