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
- debian bookworm: publib-dev 0.40-3+b1 Β· BSD-2-Clause
- debian trixie: publib-dev 0.40-4 Β· BSD-2-Clause
- ubuntu jammy: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu noble: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu questing: publib-dev 0.40-4
- ubuntu resolute: publib-dev 0.40-4build1 Β· BSD-2-Clause
- ubuntu stonking: publib-dev 0.40-4build1 Β· BSD-2-Clause
- Copyright (c) 1994-2006 Lars Wirzenius. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms