cl_hp_unfold_field(3)
π¦ cl_hp_unfold_field(3) π¦
okay bestie, this page is from the canlock-hp 3.3.2 manual, and itβs all about cl_hp_unfold_field β the header-field unfolder. no cap, sheβs here to handle those folding CR/LF cuties. π
β¨
πΈ NAME πΈ
cl_hp_unfold_field β unfold header field. literally her whole job. π«Ά
β¨ SYNOPSIS β¨
#include <libcanlock-3/canlock-hp.h>
char *cl_hp_unfold_field(const char *data, size_t *data_len);
π DESCRIPTION π
The cl_hp_unfold_field() function unfolds a header field. slay. π
The parameter data should point to the beginning of the input data. Specify the length of the input data with the value pointed to by the data_len parameter.
RFC 5322 specifies in Section 2.2 that CR and LF control characters in header field bodies are allowed for folding use only. This function removes all CR and LF control characters from the input data. periodt. π
π RETURN VALUE π
Upon successful completion a pointer to a new memory block, containing the unfolded header field with NUL-termination, is returned. Otherwise, NULL is returned.
On success, the caller is responsible to free() the memory block allocated for the output data. yes bestie, you gotta clean up after yourself. π§
On success the value pointed to by data_len is updated to the length of the unfolded header field (without NUL-termination).
π AUTHORS π
Michael Baeuerle
π£ REPORTING BUGS π£
Report bugs to <mailto:michael.baeuerle@gmx.net>.
π STANDARDS π
cl_hp_unfold_field() tries to comply with the following standards:
π₯ SEE ALSO π₯
okay thatβs the whole tea. this page is from the canlock-hp 3.3.2 manual, dated 2024-05-11. mwah, bye bestie ππ
π¦ where this page comes from
- epel 10: libcanlock-devel 3.3.3-2.el10_3 Β· BSD-3-Clause AND NLPL AND ICU
- π the page's license: ICU
- (c) 2021 Michael Baeuerle
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms