Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758182AbcDEOdA (ORCPT ); Tue, 5 Apr 2016 10:33:00 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:33826 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753251AbcDEOc7 (ORCPT ); Tue, 5 Apr 2016 10:32:59 -0400 MIME-Version: 1.0 Date: Tue, 5 Apr 2016 10:32:58 -0400 Message-ID: Subject: RE: [PATCH v4] sscanf: implement basic character sets From: Shahbaz Youssefi To: LKML , jeyu@redhat.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 302 Lines: 8 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