X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Flibc%2Fstdio.h;h=fbc79b70829537ffc00d4d07fd3a5fd9b0434e92;hp=866ed70661d0bc5e566441daad75679b1401053b;hb=9358438bef42dbbcd1492a52d9010899a9756d2c;hpb=d1e8a437c1fab4535f82c4c214ec3330ac32e48d diff --git a/src/libc/stdio.h b/src/libc/stdio.h index 866ed70..fbc79b7 100644 --- a/src/libc/stdio.h +++ b/src/libc/stdio.h @@ -1,3 +1,20 @@ +/* +pcboot - bootable PC demo/game kernel +Copyright (C) 2018 John Tsiombikas + +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 . +*/ #ifndef STDIO_H_ #define STDIO_H_ @@ -16,4 +33,8 @@ int vsprintf(char *buf, const char *fmt, va_list ap); int snprintf(char *buf, size_t sz, const char *fmt, ...); int vsnprintf(char *buf, size_t sz, const char *fmt, va_list ap); +/* printf to the serial port */ +int ser_printf(const char *fmt, ...); +int ser_vprintf(const char *fmt, va_list ap); + #endif /* STDIO_H_ */