Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dyhi55
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
dyhi55
2y ago
C is not node.js. C exists for 50 years and is expected to have stable API. In scientific circles it's not unusual to compile c and f77 libraries built in the 70's, 80's. BLAS, gemv, GEMM, SGEMM libraries are from 1979, 1984,
2.
▲
by
dyhi55
2y ago
Sure, choose any platform before 1990. The modern ansi / iso c didn't exist before 1990. The c language is from 1970's. So code from any old tarball will assume c literals are writable, and will crash if not. It's a comm
3.
▲
by
dyhi55
2y ago
You're young. On all the legacy platforms I'm familiar with, you can modify string literals. That's original c.
4.
▲
by
dyhi55
2y ago
Strings including string literals are supposed to be writable for strtok() to work. Const char * is a modern c construct. You gotta deprecate parts of the standard c library, which will break backward compatibility...