strmove(): Add API, and use it instead of its pattern#1424
Open
alejandro-colomar wants to merge 3 commits intoshadow-maint:masterfrom
Open
strmove(): Add API, and use it instead of its pattern#1424alejandro-colomar wants to merge 3 commits intoshadow-maint:masterfrom
alejandro-colomar wants to merge 3 commits intoshadow-maint:masterfrom
Conversation
bb758c4 to
bef0b44
Compare
bef0b44 to
1428b17
Compare
1428b17 to
9f5336c
Compare
9f5336c to
28aeb9f
Compare
b1805c7 to
5708a7e
Compare
An interesting detail is that we require the second argument to be non-const, while the memmove(3) function gets a const void*. This is because the second argument should usually be just the same as the first one, plus some offset, and thus will have the same const qualification (that is, it will not be qualified). Signed-off-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
5708a7e to
9bdb78a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cc: @kees
Revisions:
v1b
v2
v2b