RE: [PATCH v4] sscanf: implement basic character sets

2016-04-05 Thread Shahbaz Youssefi
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#L3

Re: [PATCH v4] sscanf: implement basic character sets

2016-03-02 Thread Rasmus Villemoes
On Fri, Feb 26 2016, Jessica Yu wrote: > @@ -2714,6 +2718,57 @@ int vsscanf(const char *buf, const char *fmt, va_list > args) > num++; > } > continue; > + /* > + * Warning: This implementation of the '[' conversion specif