Skip to content
Snippets Groups Projects
Commit 5c99fa37 authored by Keno Fischer's avatar Keno Fischer Committed by Greg Kurz
Browse files

cutils: Provide strchrnul


strchrnul is a GNU extension and thus unavailable on a number of targets.
In the review for a commit removing strchrnul from 9p, I was asked to
create a qemu_strchrnul helper to factor out this functionality.
Do so, and use it in a number of other places in the code base that inlined
the replacement pattern in a place where strchrnul could be used.

Signed-off-by: default avatarKeno Fischer <keno@juliacomputing.com>
Acked-by: default avatarGreg Kurz <groug@kaod.org>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
parent 609ef9f4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment