Answers often come when you're not actively looking for them!
No, because a read is still a strict aliasing violation, no magic stuff happening here sadly.
But, if you were to cast a pointer to a...
Type: Posts; User: Lucide
Answers often come when you're not actively looking for them!
No, because a read is still a strict aliasing violation, no magic stuff happening here sadly.
But, if you were to cast a pointer to a...
Thank you!
I found a link to a defect report that clarifies the union behaviour: Defect report #283.
The union approach you suggested is safe and sound and "ready to use" in C99 (the first usage...
Given a better look around, perhaps this is not the right place to ask such questions! It's all a jumble of pre-beginner/beginner/something else threads all mixed together.
With no separation...
Yes, most of the points brought up here com from there, somehow it's still going on to this day, through comments.
What I've written above includes what I was able to understand from there. But even...
Hi, your reply reminded me that I forgot to mention some important details!
I'm looking at code that was already working, but was not fully strict aliasing compliant. Endianness is correctly...
I'm reviewing some code I've written some time ago, and I'm taking I'm taking this opportunity for to dust off my C.
I'm using uint32_t arrays to store UTF8-encoded codepoints. They are treated as...
Hi!
Before committing to create a full fledged new thread, I wanted to know if it's ok to ask questions about documentation generation. (more specifically, C code documentation generation).
I've...
I read (by now) the first article you provided.
It's really good, even if a bit windows-oriented
But, by now, I still think I should use wide chars, and I'll explain why:
- especially because...
Well, I posted at least 6 urls between articles and pages here, that I could find and read when I had some spare time.
I didn't write an extensive amount of questions, asking for opinions from...
I read again the article after christop's clarification and I come out to the conclusion of using wide chars:
I'll lose some performance since at every output(and input) the char will have to be...
I know, that's why I'm confused about the article's subdivision
I'll post it again:
15386
I did some even additional research and I found out new things, but, as before, I'd like to have some confirmations.
I understood that wchar type and wchar functions are not there to simply work,...
Damn, it's even more complicated than I thought, but a lot more things makes sense, thank you!
Ok, so I can print non ascii in a narrow stream, but comprehensibly only if they're represented with...
Hi :), first post
Some years ago I wrote a text-based graphic library, which worked similarly to Scratch, but with 2d arrays of integers as sprites, one character per cell.
I used integers...