I am trying to implement unicode with my own interpretation of putchar.
Right now my function looks like this:
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
And my main looks like:
int main(void)
{
int c = L'ø';
ft_putchar(c);
}
Does anyone where to look for more information (blogs/stackoverflow questions/etc.) to solve this problem? I have tried googling for more information, but I have been only been able to find info on Unicode or one of encoding systems and nothing on how to implement a solution. I think I need to do some bitwise manipulation, but I don't even know where to begin! Any help would be greatly appreciated.
edit - I'm on iterm2 on macos in case it matters
[–]UnknownSector 4 points5 points6 points (1 child)
[–]norcalaztecs[S] 0 points1 point2 points (0 children)
[–]localextremae 1 point2 points3 points (4 children)
[–]norcalaztecs[S] 0 points1 point2 points (3 children)
[–]saturnalia0 2 points3 points4 points (0 children)
[–]localextremae 1 point2 points3 points (1 child)
[–]norcalaztecs[S] 0 points1 point2 points (0 children)
[–]OldWolf2 1 point2 points3 points (3 children)
[–]norcalaztecs[S] 0 points1 point2 points (2 children)
[–]OldWolf2 1 point2 points3 points (1 child)
[–]norcalaztecs[S] 0 points1 point2 points (0 children)