From 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 22:22:16 +0100 Subject: Add bin/true and bin/false implementations - Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code. --- lib/libc/stdio/vfprintf.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/libc/stdio/vfprintf.c') diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index fb4c200e..495fb9ea 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -9,7 +9,6 @@ #include #include #include -#include extern char *dtoa(double, int mode, int ndigits, int *decpt, int *sign, char **rve); @@ -752,15 +751,12 @@ int vfprintf(FILE *restrict stream, const char *restrict format, va_list ap) if ((flags & FLAG_MINUS) == 0) { if (pad_char == '0' && s != NULL) { - int prefix_len = 0; - if (s[0] == '-' || s[0] == '+' || s[0] == ' ') { fwrite(s, 1, 1, stream); total_printed++; s++; l--; - prefix_len++; } if (l >= 2 && s[0] == '0' && @@ -769,7 +765,6 @@ int vfprintf(FILE *restrict stream, const char *restrict format, va_list ap) total_printed += 2; s += 2; l -= 2; - prefix_len += 2; } for (int i = 0; i < padding; i++) { -- cgit v1.2.3