this post was submitted on 31 Oct 2023
262 points (90.2% liked)

Programmer Humor

19441 readers
59 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] raubarno@beehaw.org 4 points 1 year ago (1 children)

Why do you call write() for every char? You can always just pass a pointer with its length.

I am not skilled enough to do that ngl