Re: [avr-libc-dev] fwrite() not working as expected

2018-03-10 Thread NicoHood
On 03/10/2018 11:52 AM, Georg-Johann Lay wrote: > avr-libc-...@nicohood.de schrieb: >> Hi, >> I am trying to use fwrite() to write the first X bytes of a string like >> this, but with a wrong output: >> >> auto ret = fwrite("Hello World!", 1, 5, stdout); >> printf("%d\n", ret); >> // Output: H0 >>

Re: [avr-libc-dev] fwrite() not working as expected

2018-03-10 Thread Georg-Johann Lay
avr-libc-...@nicohood.de schrieb: Hi, I am trying to use fwrite() to write the first X bytes of a string like this, but with a wrong output: auto ret = fwrite("Hello World!", 1, 5, stdout); printf("%d\n", ret); // Output: H0 Its documented here: https://www.nongnu.org/avr-libc/user-manual/group