[En-Nut-Discussion] Reading from file

Harald Kipp harald.kipp at egnite.de
Thu Oct 4 09:09:15 CEST 2007


Oops, I forgot

n = _read(fd, data, size - 1);

Harald Kipp schrieb:
> Maciek,
>
> you missed to add the terminating '\x00' character.
>
> Maciek schrieb:
>   
>>                         n = _read(fd, data, size);
>>   
>>     
> data[n] = 0;
>   
>>                                 fprintf_P(stdout, PSTR("%s"), data);
>>   
>>     
> Harald
>
> PS. please send plain text to the list. See
> http://www.expita.com/nomime.html
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>   


-- 
egnite Software GmbH
Erinstr. 9
44575 Castrop-Rauxel
Germany

Fon +49 (0)23 05-44 12 56
Fax +49 (0)23 05-44 14 87

http://www.egnite.de/
http://www.ethernut.de/

Handelsregister: Amtsgericht Dortmund HRB 19783
USt-IdNr.: DE 189520047
Geschäftsführung: Harald Kipp





More information about the En-Nut-Discussion mailing list