Skip to content

lib/string/strspn/: Compact files#1651

Open
alejandro-colomar wants to merge 2 commits into
shadow-maint:masterfrom
alejandro-colomar:sspn
Open

lib/string/strspn/: Compact files#1651
alejandro-colomar wants to merge 2 commits into
shadow-maint:masterfrom
alejandro-colomar:sspn

Conversation

@alejandro-colomar

Copy link
Copy Markdown
Collaborator

(And use stpspn() in one more place, to simplify some code, and make it more explicit.)

Put together str*() and corresponding stp*() APIs in the same file.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This loop accepts and skips contiguous commas.  Let's acknowledge that
by using code that explicitly does this (and which is also simpler,
avoiding a conditional operator).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant