|
Download benchmarks/Engineering/string/search/problem.md from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Engineering/string/search/problem.md
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Engineering/string/search/problem.md
-
curl -L -o problem.md https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Engineering/string/search/problem.md
589 Bytes
String and Memory Search
Problem Description
Implement fixed-size memory search and null-terminated string search.
Input
The functions receive character pointers and any byte value or length arguments described by their C signatures.
Output
Each function returns or writes the result prescribed by the corresponding standard string or memory operation.
Constraints
Strings, byte arrays, capacities, and integer arguments satisfy the validity and bounds stated by each function contract.
Source
C string-library benchmark adapted by the QCP LLM benchmark suite.