mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-29 08:40:03 +00:00

TF Makefile was linking all the objects files generated for the c library instead of creating a static library that could be used in the linking stage. Change-Id: I721daea097e9b13cbb42c9f8eaa2af8fea0799cf Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
27 lines
529 B
C
27 lines
529 B
C
/*
|
|
* 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;
|
|
}
|