From 1c607342b4634adfff914d47ea9550ce960f2dc4 Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sun, 20 Aug 2023 14:39:25 +0300 Subject: [PATCH] Im nice --- printf.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 printf.c diff --git a/printf.c b/printf.c new file mode 100644 index 0000000..370fc5b --- /dev/null +++ b/printf.c @@ -0,0 +1,23 @@ +#include "main.h" +#include + +int _printf(const char *format, ...) +{ + unsigned int thingies; /*how many %* that aren't %*/ + char *buffer; + int i; + va_list stuff; + + thingies = _contains(format, '%'); + va_start(stuff, format); + + if (!format) + return (0); + while(format) + { + if (*format) + } + + + +}