[OT] Re: Implementing my own memcpy
In article <42C5F9B9.CB646 6B2@yahoo.com>, CBFalconer wrote:[color=blue]
> Nils Weller wrote:[color=green]
>> Nils Weller wrote:
>>[color=darkred]
>>> rc = read(buf, sizeof buf - 1, fd);[/color]
>>
>> Of course I had to goof this one!
>>
>> rc = read(fd, buf, sizeof buf - 1);[/color]
>
> I have no idea what it goes with, because your previous article was
> much too long to read. :-) However, you have still goofed, because
> there is no such standard function as 'read'. Look up fread, which
> IS portable.[/color]
And nobody claimed that read() is a standard C function. I explicitly
commented the code as being Unix-specific in the previous, too long
post. Moreover, the macro that triggered this sub-thread has also been
pointed out to be Unix-specific, and there has been some talk about Unix
kernel implementation and compatibility system software.
Perhaps an OT tag was missing, but I think it is clear that we aren't
talking about standard C anymore.
--
Nils R. Weller, Bremen / Germany
My real email address is ``nils<at>gnuli nux<dot>nl''
.... but I'm not speaking for the Software Libre Foundation!
In article <42C5F9B9.CB646 6B2@yahoo.com>, CBFalconer wrote:[color=blue]
> Nils Weller wrote:[color=green]
>> Nils Weller wrote:
>>[color=darkred]
>>> rc = read(buf, sizeof buf - 1, fd);[/color]
>>
>> Of course I had to goof this one!
>>
>> rc = read(fd, buf, sizeof buf - 1);[/color]
>
> I have no idea what it goes with, because your previous article was
> much too long to read. :-) However, you have still goofed, because
> there is no such standard function as 'read'. Look up fread, which
> IS portable.[/color]
And nobody claimed that read() is a standard C function. I explicitly
commented the code as being Unix-specific in the previous, too long
post. Moreover, the macro that triggered this sub-thread has also been
pointed out to be Unix-specific, and there has been some talk about Unix
kernel implementation and compatibility system software.
Perhaps an OT tag was missing, but I think it is clear that we aren't
talking about standard C anymore.
--
Nils R. Weller, Bremen / Germany
My real email address is ``nils<at>gnuli nux<dot>nl''
.... but I'm not speaking for the Software Libre Foundation!
Comment