bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Relocatable: relocate2


From: Reuben Thomas
Subject: Relocatable: relocate2
Date: Wed, 26 Jul 2017 21:45:14 +0100

I noticed relocate2 recently. Unfortunately, it's rather awkward to use, as it requires one to keep track of two pointers.

The obvious "lazy" API for code that doesn't mind allocation is for the relocated path always to be allocated. Would a patch to add such a version of relocate (suggestions for name?) be acceptable? It would work exactly like relocate, but strdup its return value if necessary.

--
https://rrt.sc3d.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]