Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
the-smug-c-one
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
the-smug-c-one
2y ago
Because you're probably writing a much larger program so some ifdefs aren't a big deal :-).
2.
▲
by
the-smug-c-one
2y ago
What modern OS doesn't have the equivalent of mmap? Just som #ifdefs. I didn't know I'd ever hear "use malloc, because it's portable". sylware is pretty much right anyway. Try to avoid malloc, or write smaller