diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-10 17:15:28 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-10 17:15:28 +0100 |
commit | 0de4a082d0f8a156b5aa40719c13e9fe44d2787d (patch) | |
tree | 5275d618ec64958b05e88c989c13ad9a4a559ccf /src/port/stdio.c | |
parent | a6b606fd903e4c7dd188fe6a8dd35ed583e54cbf (diff) | |
download | wolfbones-0de4a082d0f8a156b5aa40719c13e9fe44d2787d.tar.gz wolfbones-0de4a082d0f8a156b5aa40719c13e9fe44d2787d.tar.bz2 |
cleanup in stdio.h with snprintf (on Linux works at least), also added testing for snprintf
Diffstat (limited to 'src/port/stdio.c')
-rw-r--r-- | src/port/stdio.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/port/stdio.c b/src/port/stdio.c new file mode 100644 index 0000000..d7a4d3f --- /dev/null +++ b/src/port/stdio.c @@ -0,0 +1,25 @@ +/* + Copyright (C) 2008 Andreas Baumann <abaumann@yahoo.com> + + 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 3 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, see <http://www.gnu.org/licenses/>. +*/ + +#include "port/stdio.h" + +/** + * C99 snprintf and vsnprintf + * (from http://www.jhweiss.de/software/snprintf.html) + */ + +#include "port/snprintf.c" |