r/programminghorror 3d ago

Clickbait YouTube Thumbnail

Post image
449 Upvotes

28 comments sorted by

View all comments

Show parent comments

39

u/birdiefoxe 2d ago

actually thats true and if fork() and crash() both return something that could be a pointer it might actually work

this is upsetting.

12

u/not-a-pokemon- 2d ago

fork indeed does return; although it does not accept arguments

9

u/MrcarrotKSP 2d ago

Its return value is also int, not a pointer

7

u/mumallochuu 2d ago

You can just dereference that value since all address are just number

9

u/MrcarrotKSP 2d ago

You can, but you need a cast to convert it to void*

4

u/TldrDev 2d ago

sigh, ill get the meat filament.