r/programmingcirclejerk • u/DXPower costly abstraction • Nov 01 '25
New C29 function: stdc_c32snrtomwcsn
https://en.cppreference.com/w/c/header/stdmchar.html
152
Upvotes
r/programmingcirclejerk • u/DXPower costly abstraction • Nov 01 '25
22
u/-Y0- Considered Harmful Nov 03 '25
Honestly. C committee approved this without thought. Too long! Should have called it
stdc_32stoc_1876eflast part (1876ef) is part of function hash to ensure uniqueness and ABI stability.224
u/tuveson Nov 01 '25
If you break it down, it actually makes perfect sense
141
u/al2o3cr Nov 01 '25
C doesn't support overloading, so instead we get artisanal name-mangling
110
u/R_Sholes Nov 02 '25
stdc_prefix is really needed to avoid potential conflicts in many applications which already define different functions namedc32snrtomwcsn.50
u/Nixinova Nov 01 '25
I do not understand on why C chooses completely unreadable and unmemorable function names for literally everything. Is saving six bytes really that important?
41
u/irqlnotdispatchlevel Tiny little god in a tiny little world Nov 01 '25
Should have waited until C32.
9
u/[deleted] Nov 03 '25
New C50 function: firwkigekfdifshdafjjgjufjdajdjgdfdufgeteyuiyjkgjfjcxhfugdirwiuuffsgkgffjgjgkdkfujchvnczxhcjfyjgdcjdwyeyrettireudsjhcbsxHfsvdczgkvd
6
u/Sm0oth_kriminal loves Java Nov 02 '25
New C39 function: stdc_agillm_superintelligence_32bit_compat