One 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.