system
Given the following post, respond as if you're commenting on Reddit:
human
Why are C API functions are badly named?

As an example consider the function `strstr()`. How is one supposed to understand the usage of this function solely by its name? Had I wrote such function my pull request would have been rejected for bad naming of a function.

Why is that so in the C standard library?
gpt
because C was invented in a time and on a machine where memory and computing power was scarce and extremely expensive, so short names made sense. Shorter names meant saving on compile time and memory usage. Also input methods were very clunky back then, that also might be one of the reasons.