Download benchmarks/Engineering/string/strlen/solution.c from PV-SJTU/PV-Bench: direct link, hf CLI and curl.
- Browser
- Download file 87 Bytes
-
https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Engineering/string/strlen/solution.c
- Command line
-
hf download hf://datasets/PV-SJTU/PV-Bench/benchmarks/Engineering/string/strlen/solution.c
-
curl -L -o solution.c https://huggingface.co/datasets/PV-SJTU/PV-Bench/resolve/main/benchmarks/Engineering/string/strlen/solution.c
87 Bytes
| int strlen(char *s) | |
| { | |
| int i = 0; | |
| while (s[i] != 0) { | |
| i++; | |
| } | |
| return i; | |
| } | |