D
david
Hi friends, excuse mi poor english, how to right align a string with
printf when extended chars are used?
#include <stdio.h>
int main(void)
{
printf("%10s\n", "mono");
printf("%10s\n", "moño");
return 0;
}
out:
Mono
Moño
both mades 4 chars in the screen but mono is 4 bytes and moño 5 bytes,
how can I fix this
printf when extended chars are used?
#include <stdio.h>
int main(void)
{
printf("%10s\n", "mono");
printf("%10s\n", "moño");
return 0;
}
out:
Mono
Moño
both mades 4 chars in the screen but mono is 4 bytes and moño 5 bytes,
how can I fix this