X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fpic16%2Flibc%2Fstdio%2Fvprintf.c;h=ef6be5e1a867ebf3f16a720f52bd50ebaf7ee142;hb=9f5ca28d648aba61200519f5fa855700a48ccc6f;hp=992132dfa4a0ae0e6602dc8c846dbbee2857bae4;hpb=c5499f98aa5c2ce7df3a6e5dcf0fd69b6c3818cd;p=fw%2Fsdcc diff --git a/device/lib/pic16/libc/stdio/vprintf.c b/device/lib/pic16/libc/stdio/vprintf.c index 992132df..ef6be5e1 100644 --- a/device/lib/pic16/libc/stdio/vprintf.c +++ b/device/lib/pic16/libc/stdio/vprintf.c @@ -1,8 +1,8 @@ /*----------------------------------------------------------------- - vprintf.c - + vprintf.c - Written for pic16 port, by Vangelis Rokas, 2005 (vrokas@otenet.gr) - + This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, or (at your option) any @@ -20,20 +20,20 @@ In other words, you are welcome to use, share and improve this program. You are forbidden to forbid anyone else to use, share and improve what you give them. Help stamp out software-hoarding! --------------------------------------------------------------------------*/ -/* -** $Id$ -*/ + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable + to be covered by the GNU General Public License. + This exception does not however invalidate any other reasons why + the executable file might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ #include #include -unsigned vprintf(char *fmt, va_list ap) +int +vprintf (const char *fmt, va_list ap) { - unsigned int i; - - i = vfprintf(stdout, fmt, ap); - - return (i); + return vfprintf(stdout, fmt, ap); }