STRCINS(3pub)
π STRCINS(3pub) π
okay bestie, welcome to STRCINS(3pub), a page from the C Programmer's Manual and honestly? it's a lil baby function but it's so useful. let's get into it β¨
πΈ NAME πΈ
strcins β insert a character at the beginning of a string π
β¨ SYNOPSIS β¨
#include <publib.h>
void strins(char *str, int c);
π¦ DESCRIPTION π¦
so basically, strcins inserts the character c at the very beginning of the string str. like it just... pops it right up front, front row, main character energy π
β οΈ real talk though: the target string must contain enough memory to hold the result. no cap. if it doesn't have room, that's on you, not on strcins π
π SEE ALSO π
π AUTHOR π
Lars Wirzenius (lars.wirzenius@helsinki.fi) β ty for your service king π«Ά
and that's the whole vibe check, bestie! this page is from Publib's C Programmer's Manual, STRCINS(3pub) section, so go forth and insert characters at the front of strings responsibly π
πβ
π¦ 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