Re: "printf" bloated, Ok. But how to print then?
Frank Bergmann <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
In Fri, 25 Sep 2009, WARC cum veritate scripsit : [...] > complains and stops compiling when seeing them. No, the diet wrapper warns but does not stop compiling. You get a warning about approx. 7 KB of bloat code but it will compile. If you didn't get an object file or executable then there was a "real" error of some different kind. But Laurent Bercot did already give you hints how to avoid printf and stdio-code. If you need 1 or 2 write()-calls then use them directly. If you need some more you should maybe use your own "string-buffer" to "cat" the single writes and at last write the whole buffer. If you need many write()-calls then use the buffer-code availabe from DJB, Fefe or skarnet. Start with it and don't be frightened. Maybe it's a long way but you can't lose! ;-) Frank -- Linux - A world full of developers cannot be wrong.