We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Talk:Malloc
Jump to navigation
Jump to search
Negative Numbers
Negative numbers should free memory Fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff (talk) 19:49, 5 October 2024 (UTC)
- Nope. The function malloc() in C accepts unsigned integers, so negative numbers should allocate memory, too. --None1 (Nope.) 07:21, 10 August 2026 (UTC)
malloc -1would result in allocatingchars on a 64-bit platform so this is a very funny prank to use on your friends (if malloc succeeds) 【user:raiseafloppafan7741 | kausapin mo ako【past life・投稿】【▼(°ʌ°)▼】【Fight for what HTML deserves.】】 14:03, 31 August 2026 (UTC)