diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-17 09:46:43 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-22 10:26:04 +0100 |
commit | 90f2d452a860adef46dde22ddaf39811a0a43c5d (patch) | |
tree | 9dd60f892f646917f40b65928ce0bdf46f12c73d /lib/libc/sscanf.c | |
parent | 091f39675a98ee9e22ed78f52e239880bedf8911 (diff) |
libc: Remove sscanf() and timingsafe_bcmp()
sscanf() is unused and it doesn't work, so it doesn't make sense to
keep it.
timingsafe_bcmp() isn't used anywhere.
Change-Id: Ib5d28ff21d0f3ccc36c5c0fb5474b3384105cf80
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'lib/libc/sscanf.c')
-rw-r--r-- | lib/libc/sscanf.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/libc/sscanf.c b/lib/libc/sscanf.c deleted file mode 100644 index a5876cff..00000000 --- a/lib/libc/sscanf.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#include <stdio.h> -#include <sys/cdefs.h> - -/* - * TODO: This is not a real implementation of the sscanf() function. It just - * returns the number of expected arguments based on the number of '%' found - * in the format string. - */ -int -sscanf(const char *__restrict str, char const *__restrict fmt, ...) -{ - int ret = 0; - - while (*fmt != '\0') { - if (*fmt++ == '%') { - ret++; - } - } - - return ret; -} |