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.
Dependents: TFT_Touch_botao_v1 TFT_Touch_exemplo5_git_touch TESTE_1 TFT_Touch_exemplo6_git_touch_button_3_
itoa.h@0:5952bbaff1c6, 2021-04-26 (annotated)
- Committer:
- davidprentice
- Date:
- Mon Apr 26 14:52:27 2021 +0000
- Revision:
- 0:5952bbaff1c6
initial set of files to enable Arduino examples
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
davidprentice | 0:5952bbaff1c6 | 1 | /* |
davidprentice | 0:5952bbaff1c6 | 2 | Copyright (c) 2011 Arduino. All right reserved. |
davidprentice | 0:5952bbaff1c6 | 3 | |
davidprentice | 0:5952bbaff1c6 | 4 | This library is free software; you can redistribute it and/or |
davidprentice | 0:5952bbaff1c6 | 5 | modify it under the terms of the GNU Lesser General Public |
davidprentice | 0:5952bbaff1c6 | 6 | License as published by the Free Software Foundation; either |
davidprentice | 0:5952bbaff1c6 | 7 | version 2.1 of the License, or (at your option) any later version. |
davidprentice | 0:5952bbaff1c6 | 8 | |
davidprentice | 0:5952bbaff1c6 | 9 | This library is distributed in the hope that it will be useful, |
davidprentice | 0:5952bbaff1c6 | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
davidprentice | 0:5952bbaff1c6 | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
davidprentice | 0:5952bbaff1c6 | 12 | See the GNU Lesser General Public License for more details. |
davidprentice | 0:5952bbaff1c6 | 13 | |
davidprentice | 0:5952bbaff1c6 | 14 | You should have received a copy of the GNU Lesser General Public |
davidprentice | 0:5952bbaff1c6 | 15 | License along with this library; if not, write to the Free Software |
davidprentice | 0:5952bbaff1c6 | 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
davidprentice | 0:5952bbaff1c6 | 17 | */ |
davidprentice | 0:5952bbaff1c6 | 18 | |
davidprentice | 0:5952bbaff1c6 | 19 | #ifndef _ITOA_ |
davidprentice | 0:5952bbaff1c6 | 20 | #define _ITOA_ |
davidprentice | 0:5952bbaff1c6 | 21 | |
davidprentice | 0:5952bbaff1c6 | 22 | #ifdef __cplusplus |
davidprentice | 0:5952bbaff1c6 | 23 | extern "C" { |
davidprentice | 0:5952bbaff1c6 | 24 | #endif // __cplusplus |
davidprentice | 0:5952bbaff1c6 | 25 | |
davidprentice | 0:5952bbaff1c6 | 26 | #if 0 |
davidprentice | 0:5952bbaff1c6 | 27 | |
davidprentice | 0:5952bbaff1c6 | 28 | extern void itoa(int n, char s[]) ; |
davidprentice | 0:5952bbaff1c6 | 29 | |
davidprentice | 0:5952bbaff1c6 | 30 | #else |
davidprentice | 0:5952bbaff1c6 | 31 | |
davidprentice | 0:5952bbaff1c6 | 32 | extern char *itoa(int value, char *string, int radix) ; |
davidprentice | 0:5952bbaff1c6 | 33 | extern char *ltoa(long value, char *string, int radix) ; |
davidprentice | 0:5952bbaff1c6 | 34 | #if __GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 9 || \ |
davidprentice | 0:5952bbaff1c6 | 35 | (__GNUC_MINOR__ == 9 && __GNUC_PATCHLEVEL__ > 2))) |
davidprentice | 0:5952bbaff1c6 | 36 | extern char *utoa(unsigned value, char *string, int radix) ; |
davidprentice | 0:5952bbaff1c6 | 37 | #else |
davidprentice | 0:5952bbaff1c6 | 38 | extern char *utoa(unsigned long value, char *string, int radix) ; |
davidprentice | 0:5952bbaff1c6 | 39 | #endif |
davidprentice | 0:5952bbaff1c6 | 40 | extern char *ultoa(unsigned long value, char *string, int radix) ; |
davidprentice | 0:5952bbaff1c6 | 41 | #endif /* 0 */ |
davidprentice | 0:5952bbaff1c6 | 42 | |
davidprentice | 0:5952bbaff1c6 | 43 | #ifdef __cplusplus |
davidprentice | 0:5952bbaff1c6 | 44 | } // extern "C" |
davidprentice | 0:5952bbaff1c6 | 45 | #endif // __cplusplus |
davidprentice | 0:5952bbaff1c6 | 46 | |
davidprentice | 0:5952bbaff1c6 | 47 | #endif // _ITOA_ |
davidprentice | 0:5952bbaff1c6 | 48 |