Teach fmtcheck(3) about the ' (thousands separator) flag. Taken from FreeBSD:

https://svnweb.freebsd.org/base/head/lib/libc/gen/fmtcheck.c#rev143905
This commit is contained in:
rin 2017-12-06 12:30:27 +00:00
parent efd7892a37
commit 41130f53d9
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fmtcheck.c,v 1.12 2017/12/06 12:28:53 rin Exp $ */
/* $NetBSD: fmtcheck.c,v 1.13 2017/12/06 12:30:27 rin Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: fmtcheck.c,v 1.12 2017/12/06 12:28:53 rin Exp $");
__RCSID("$NetBSD: fmtcheck.c,v 1.13 2017/12/06 12:30:27 rin Exp $");
#endif
#include "namespace.h"
@ -242,7 +242,7 @@ get_next_format(const char **pf, EFT eft)
}
/* Eat any of the flags */
while (*f && (strchr("#0- +", *f)))
while (*f && (strchr("#'0- +", *f)))
f++;
if (*f == '*') {