argv_split(9)
argv_split(9) β Kernel API Manual
okay so bestie, welcome to the Kernel API Manual page for argv_split β itβs giving βstring goes in, argv comes outβ energy. π
πΈ NAME πΈ
argv_split β split a string at whitespace, returning an argv.
β¨ SYNOPSIS β¨
char ** argv_split (const char *str , int *argcp );
π ARGUMENTS π
strβ the string to be split. literally the main character here.argcpβ returned argument count. this is where the count comes back, bestie.
π DESCRIPTION π
Returns an array of pointers to strings which are split out from str. Thatβs the whole vibe: hand it a string, get back the argv array. β¨
This is performed by strictly splitting on white-space; no quote processing is performed. So quotes do not get special treatment, no cap. Multiple whitespace characters are considered to be a single argument separator. The returned array is always NULL-terminated. Returns NULL on memory allocation failure.
heads up, bestie: βmemory allocation failureβ means you get NULL back β thatβs the failure signal, okay? π
π₯ SEE ALSO π₯
- Kernel file
./tools/lib/argv_split.c argv_free(9)
source: ./tools/lib Β· date: October 2026 Β· page: argv_split(9) β byeeeee bestie ππ«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms