anna on Nostr: what even is the point of the first argument of strtok_r? like literally, it does ...
what even is the point of the first argument of strtok_r?
like literally, it does nothing, you can start parsing with it being null and giving the actual array in the saveptr and it works
* navi looks at strsep
yep, that's better
Published at
2024-05-21 21:29:29Event JSON
{
"id": "e1842c37ef28b4c4bae500af5dfb958750c5900d188c99e8f40063516ebc60bd",
"pubkey": "4ebc018b65a1b352f90f937be79b5c338651f1528960889fa64caa94be982f8a",
"created_at": 1716326969,
"kind": 1,
"tags": [
[
"proxy",
"https://social.vlhl.dev/objects/e6855cbe-3deb-4c08-ac29-05bb917ccbe5",
"activitypub"
]
],
"content": "what even is the point of the first argument of strtok_r?\n\nlike literally, it does nothing, you can start parsing with it being null and giving the actual array in the saveptr and it works\n\n* navi looks at strsep\n\nyep, that's better",
"sig": "4b701661fe10a859dc99ba06a9b985d2d141b9606d50129d558fdb781208f4a8412f19b74db0f6f724885fe2f5c24c991e90157e2ff79810192f3a944a1824a1"
}