STRSET(3pub)

πŸ’– STRSET πŸ’–

okay bestie, welcome to the publib corner of the C Programmer's Manual, where we're talking about strset from STRSET(3pub) πŸŽ€


✨ NAME ✨

strset β€” sets every single character in a string to one given character πŸ’…

like, the whole glow-up, every character, same vibe. slay.


🌸 SYNOPSIS 🌸

#include <publib.h>
char *strset(char *str, int c);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie πŸ“

strset will set all the characters in the string str to c.

and when I say all, I mean all the ones before the terminating '\0' β€” that null terminator is the main character and it stays exactly where it is, untouched, iconic, not getting changed. periodt. πŸ‘‘


πŸ’œ RETURN VALUE πŸ’œ

strset returns its first argument. yes bestie, it just hands you back str. no cap. 🫢


🌈 SEE ALSO 🌈


⭐ AUTHOR ⭐

Lars Wirzenius (lars.wirzenius@helsinki.fi) β€” the legend, the icon πŸ‘‘


that's it, that's the page, mwah πŸ’‹ this was Publib's C Programmer's Manual, STRSET(3pub), and yeah this is the part where the footer would go β€” so consider this your cute lil sign-off: Publib, C Programmer's Manual, STRSET(3pub) πŸ§šπŸ’–βœ¨

πŸ“¦ where this page comes from