this post was submitted on 11 Dec 2023
102 points (96.4% liked)
Programmer Humor
32479 readers
301 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
man 2 ofcyfpos
Note that while Visual C++'s msvcrt doesn't implement this POSIX function officially, there's a nonstandard
_ofcyfpos_s()
and it will in fact warn you that any use of the officialofcyfpos()
is unsafe. The semantics are slightly different (it'll return 1 on success instead of the length of the reply) so you can't just#define
the problem away.UCRT makes me so hard.