gnurl_mime_subparts(3)
π NAME π
libgnurl Manual, bestie β this is the page for gnurl_mime_subparts(3), aka curl_mime_subparts, and its whole job is to set subparts of a multipart mime part. β¨
π SYNOPSIS π
Here's the exact spell you cast, character-for-character:
#include <gnurl/curl.h>
CURLcode curl_mime_subparts(curl_mimepart * part, curl_mime * subparts);
π¦ DESCRIPTION π¦
Okay so curl_mime_subparts(3) sets a multipart mime part's content from a mime structure.
partβ a handle to the multipart part. That's the main character here. πsubpartsβ a mime structure handle holding the subparts.
After curl_mime_subparts succeeds, the mime structure handle belongs to the multipart part and must not be freed explicitly. It may however be updated by subsequent calls to mime API functions. π«Ά
Setting a part's contents twice is valid: only the value set by the last call is retained. It is possible to unassign previous part's contents by setting subparts to NULL. No cap, that's literally how it works. π
β¨ AVAILABILITY β¨
As long as at least one of HTTP, SMTP or IMAP is enabled. Added in 7.56.0. π
πΈ RETURN VALUE πΈ
CURLE_OK or a CURL error code upon failure. That's the tea. π
π EXAMPLE π
The example section is literally:
TODO
π SEE ALSO π
Source/version: libcurl 7.56.0 β’ date: 22 August 2017 β’ page: gnurl_mime_subparts(3). Bye bestie, go build something iconic π
π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms