Svante Signell, le Mon 16 Apr 2012 19:36:29 +0200, a écrit :
> char *readLinkBuffer; -> static char *readLinkBuffer;
> similar to static char readLinkBuffer[PATH_MAX]; before?

Yes.

> So static works even if the memory allocated for the buffer is
> malloced?? Of course the pointer remains the same, right??

Yes.

> What about if the result is a null pointer??

The result of malloc? Then return CString();, as already being done on
error.

Samuel


-- 
To UNSUBSCRIBE, email to debian-hurd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120416174038.ga3...@type.famille.thibault.fr

Reply via email to