Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
platform.h File Reference
mbed TLS Platform abstraction layer More...
Go to the source code of this file.
Functions | |
| int | platform_set_malloc_free (void *(*malloc_func)(size_t), void(*free_func)(void *)) |
| Set your own memory implementation function pointers. | |
| int | platform_set_fprintf (int(*fprintf_func)(FILE *stream, const char *,...)) |
| Set your own fprintf function pointer. | |
| int | platform_set_printf (int(*printf_func)(const char *,...)) |
| Set your own printf function pointer. | |
| int | platform_set_snprintf (int(*snprintf_func)(char *s, size_t n, const char *format,...)) |
| Set your own snprintf function pointer. | |
| int | platform_set_exit (void(*exit_func)(int status)) |
| Set your own exit function pointer. | |
Detailed Description
mbed TLS Platform abstraction layer
Copyright (C) 2006-2014, ARM Limited, All Rights Reserved
This file is part of mbed TLS (https://tls.mbed.org)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file platform.h.
Function Documentation
| int platform_set_exit | ( | void(*)(int status) | exit_func ) |
Set your own exit function pointer.
- Parameters:
-
exit_func the exit function implementation
- Returns:
- 0
Definition at line 158 of file platform.c.
| int platform_set_fprintf | ( | int(*)(FILE *stream, const char *,...) | fprintf_func ) |
Set your own fprintf function pointer.
- Parameters:
-
fprintf_func the fprintf function implementation
- Returns:
- 0
| int platform_set_malloc_free | ( | void *(*)(size_t) | malloc_func, |
| void(*)(void *) | free_func | ||
| ) |
Set your own memory implementation function pointers.
- Parameters:
-
malloc_func the malloc function implementation free_func the free function implementation
- Returns:
- 0 if successful
Definition at line 56 of file platform.c.
| int platform_set_printf | ( | int(*)(const char *,...) | printf_func ) |
Set your own printf function pointer.
- Parameters:
-
printf_func the printf function implementation
- Returns:
- 0
Definition at line 111 of file platform.c.
| int platform_set_snprintf | ( | int(*)(char *s, size_t n, const char *format,...) | snprintf_func ) |
Set your own snprintf function pointer.
- Parameters:
-
snprintf_func the snprintf function implementation
- Returns:
- 0
Definition at line 86 of file platform.c.
Generated on Tue Jul 12 2022 22:22:38 by
1.7.2