From 8ce1fdaab026e4555303c74c125870562f2570e2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 17 Dec 2016 16:18:04 -0600 Subject: [PATCH] Add an attribution to the scanset addition to sscanf() --- libc/stdio/lib_sscanf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/stdio/lib_sscanf.c b/libc/stdio/lib_sscanf.c index fcbdb941b8f..24d3c6d1842 100644 --- a/libc/stdio/lib_sscanf.c +++ b/libc/stdio/lib_sscanf.c @@ -142,6 +142,10 @@ static int findwidth(FAR const char *buf, FAR const char *fmt) * Return a pointer to the character the closing ']'. * The table has a 1 wherever characters should be considered part of the * scanset. + * + * Function findscanset based on source function __sccl of FreeBSD + * (https://github.com/lattera/freebsd/blob/master/sys/kern/subr_scanf.c) + * ****************************************************************************/ #ifdef CONFIG_LIBC_SCANSET