STRCATL(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

✨ NAME ✨

okay so bestie, this is STRCATL(3) from SchilyΒ΄s LIBRARY FUNCTIONS, and it’s all about strcatl() β€” a function that concatenates strings. literally that’s the whole vibe πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

like, the shape of it is:

char *strcatl(outbuf,s1...sn,NULL)
char *outbuf,*s1...*sn;

πŸŽ€ DESCRIPTION πŸŽ€

strcatl() concatenates the β€œto” strings (s1...sn) into outbuf. The end of the list is signalled by NULL. so you just keep handing it strings and it keeps adding them, until NULL shows up and says okay we’re done ✨


πŸ’– RETURNS πŸ’–

Returns a pointer to the end of the concatenated output, in outbuf. so it gives you back the spot where all the string-joining action ended 🫢


🌸 NOTES 🌸

no check for buffer overflow is made. like, none. zero. this is not the function to ask for a safety net, bestie 😭

A strcatl() of the form: strcatl(foo,bar,foo,NULL) does not work correctly, although a strcatl() of the form "strcatl(foo,foo,bar,NULL)" will. The destination string can only be a source string if it is the first string in the list. iykyk β€” that ordering detail is the main character here πŸ‘‘


that’s the page, bestie πŸ’œ source/version vibe: SchilyΒ΄s LIBRARY FUNCTIONS, author Joerg Schilling, dated 2022/09/09, manual page STRCATL(3) β€” bye bestie πŸŽ€πŸ’–

πŸ“¦ where this page comes from