4 ms·
Would printf even exist if C had sane strings?
by dvh 5y ago
Would printf even exist if C had sane strings?
- foxfluff 5y agoHow is formatted printing related in any way to the internal representation of strings? printf is what you call when you want to print X in hexadecimal with at least two digits, left justified on an eight-character wide field. I don't see how the sanity of whatever string representation the programming language uses is relevant here.
- msla 5y agoSome kind of formatting function would because sometimes, you really do need to print an integer with enough leading zeroes to fit in a five-digit field.
- peterashford 5y agoprintf exists in Java. Because its so bloody useful.