Commit eaae80de authored by Gabriel Genois's avatar Gabriel Genois

..

parent 621bc4c4
Pipeline #92 passed with stages
in 1 minute 4 seconds
......@@ -15,11 +15,15 @@
#include <stddef.h>
#include <stdint.h>
# include <unistd.h>
#include <stdlib.h>
#include <string.h>
int ft_printf(const char *str, ...);
void ft_putstr(char *str);
void ft_putnbr(int i);
void ft_putchar(int d);
char *ft_itoa_base(int nbr, int base);
int main(int argc, char **argv)
{
......@@ -179,10 +183,23 @@ int main(int argc, char **argv)
//i = ft_printf("Je suis un printf");
//i = ft_printf("%.2s is a string", "");
//i = ft_printf("%s is a string", "");
i = printf("%ls", L"米");
int *lol;
lol = L"米";
int lol;
lol = L'米';
char *hexa;
wchar_t out;
hexa = ft_itoa_base(lol, 16);
out = hexa;
write(1, &out, 20);
unsigned long long int *te;
//te[0] = '\u7C73';
......@@ -192,7 +209,7 @@ int main(int argc, char **argv)
char *tt;
write(1, "\u7C73", 4);
//write(1, "\u7C73", 4);
i = ft_printf("\n%S", L"米");
ft_putchar('\n');
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment