Repository navigation
feat(libc): implement strsep - #2187
AchrafReyani wants to merge 1 commit into
Conversation
Split at the first delimiter like FreeBSD's strsep: empty fields are returned, and the cursor becomes null after the last token. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Full Linux and Windows builds and tests for this head (
Run: https://github.com/AchrafReyani/AnyPS5/actions/runs/37921802565 |
|
Same as #2167, for |
Harvested from upstream (closed unmerged); library completion 2882/3258 -> 2883/3259. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011krDVCnnMQPaEFEqCDnKmA
|
@AchrafReyani
This head (804674f) merges cleanly onto 06da117, |
What
Exports
strsepwith FreeBSD's semantics (lib/libc/string/strsep.c):*stringp, ending at the first delimiter.*stringpadvances past it.strtok.*stringpbecomes NULL; with*stringp == NULLit returns NULL.Title: PPSA99169 RetroArch imports it from
libSceLibcInternal(resolved throughlibc.prx), per the #1578 audit. I haven't run the title.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release,
-DBUILD_TESTING=ON:guest_string_tests, next to thestrtokcases:",a,,b;c"with",;");""and then NULL.strtok_r, which skips empty fields, makesguest_stringsfail.cmake --build build --target libs: the patchedlibc.prxexportscJWGxiQPmDQ.tools/check_conventions.pypasses, andtools/pr_overlap.py --branchreports no overlap. The function is placed away from the lines feat(libc): implement stpcpy #1812, feat(libc): implement __inet_aton #1848 and feat(libc): implement __inet_addr #1972 change.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code