On Fri, Jun 24, 2011 at 7:45 AM, Kagamin <spam@here.lot> wrote:
Jimmy Cao Wrote:fwrite is from so called low-level file API supposed to write binary data without extra processing.
> void main()
> {
> std.c.stdio.setvbuf(stdout.getFP, null, std.c.stdio._IOLBF, 100);
> string mystr = "Hello\n";
> fwrite(mystr.ptr, mystr[0].sizeof, mystr.length, stdout.getFP);
>
> // FPUTC('\n', cast(_iobuf*)stdout.getFP);
>
> getch();
> }