diff options
author | Juan Castillo <juan.castillo@arm.com> | 2014-11-17 17:27:41 +0000 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2015-01-28 18:26:59 +0000 |
commit | e509d05728ac0a625e67d62197ad8bef73db6d88 (patch) | |
tree | d62563f6d7411dc5092fa105aa20f171024f598b /include/stdlib/stdio.h | |
parent | 6eadf7627fe1c2adb10b720210293fceea503b23 (diff) |
stdlib: add missing features to build PolarSSL
This patch adds the missing features to the C library included
in the Trusted Firmware to build PolarSSL:
- strcasecmp() function
- exit() function
- sscanf()* function
- time.h header file (and its dependencies)
* NOTE: the sscanf() function is not a real implementation. It just
returns the number of expected arguments by counting the number of
'%' characters present in the formar string. This return value is
good enough for PolarSSL because during the certificate parsing
only the return value is checked. The certificate validity period
is ignored.
Change-Id: I43bb3742f26f0bd458272fccc3d72a7f2176ab3d
Diffstat (limited to 'include/stdlib/stdio.h')
-rw-r--r-- | include/stdlib/stdio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib/stdio.h b/include/stdlib/stdio.h index 1b8429b6..60e081b4 100644 --- a/include/stdlib/stdio.h +++ b/include/stdlib/stdio.h @@ -65,6 +65,8 @@ int sprintf(char * __restrict, const char * __restrict, ...); int vsprintf(char * __restrict, const char * __restrict, __va_list); +int sscanf(const char *__restrict, char const *__restrict, ...); + #if __ISO_C_VISIBLE >= 1999 int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4); |