4 ms·
Here's a one liner: printf("a Shell");
by jarym 6y ago
Here's a one liner:
printf("a Shell");
- glouwbug 6y agoPrefer puts, as the newline is included
- userbinator 6y agoOne of the odd inconsistencies that I've never found a good answer to is why puts writes a string and a newline, but fputs doesn't write a newline. Likewise, and more problematic, is gets vs fgets --- the latter has a buffer length parameter, while the former doesn't and thus always leave the possibility of overflow. On the other hand, fprintf and printf, fscanf and scanf are consistent.
- glouwbug 6y agoNo one is perfect
- cogburnd02 6y agoExcept for Bruce Schneier. https://www.schneierfacts.com/ https://www.schneierfacts.com/
- blackrock 6y agoAnd Chuck Norris.