string.h(3avr)
β¨ string.h β¨
okay bestie, welcome to the string.h page from the AVR-LibC manual (that's the 3avr section, iykyk) π this is the group chat where all the string-and-memory girlies live. pull up a chair, we're going through every single one of them, no skipping, no scrolling past the "boring" ones. periodt. π
πΈ NAME πΈ
string.h β that's it, that's the name, she's an icon and she knows it π
β¨ SYNOPSIS β¨
π¦ Macros
#define _FFS(x)β a macro bestie, just vibing up here at the top of the file π
π§ Functions
lowkey the whole squad is here, so let's do a roll call, one by one, signatures verbatim because we do not mess with the source fr fr:
int ffs (int __val)β theffsgirlie, taking anint __valπ«int ffsl (long __val)β same energy but she'slongcoded,ffslwithlong __valπint ffsll (long long __val)β thelong longedition,ffsll, very extra, we love her πvoid * memccpy (void *, const void *, int, size_t)βmemccpy, four args deep, iconic β¨void * memchr (const void *, int, size_t)βmemchr, out here searching withconst void *,int,size_tπint memcmp (const void *, const void *, size_t)βmemcmp, the compare girlie, twoconst void *and asize_tπvoid * memcpy (void *, const void *, size_t)βmemcpy, certified classic,void *,const void *,size_tπvoid * memmem (const void *, size_t, const void *, size_t)βmemmem, twice thesize_t, twice the drama πvoid * memmove (void *, const void *, size_t)βmemmove, she moves, that's the whole vibe π¦void * memrchr (const void *, int, size_t)βmemrchr, the reverse-coded cousin, no cap βvoid * memset (void *, int, size_t)βmemset, setting the tone literally,void *,int,size_tπchar * strcat (char *, const char *)βstrcat, cat girlie, two args, zero notes πchar * strchr (const char *, int)βstrchr, out here hunting withconst char *and anintπchar * strchrnul (const char *, int)βstrchrnul, thenultwist, very mysterious, very main character πΈint strcmp (const char *, const char *)βstrcmp, duelingconst char *s, and she returns anintπ«char * strcpy (char *, const char *)βstrcpy, copy queen,char *intoconst char *β¨int strcasecmp (const char *, const char *)βstrcasecmp, the case-insensitive compare bestie, returnsintπ₯char * strcasestr (const char *, const char *)βstrcasestr, searching but make it caseless, obsessed πsize_t strcspn (const char *__s, const char *__reject)βstrcspn, with her named besties__sand__reject, returnssize_tπ«Άchar * strdup (const char *s1)βstrdup, the duplicator, takingconst char *s1πchar * strndup (const char *s, size_t n)βstrndup, dupe but with asize_t nlimit, we love a boundaried queen πsize_t strlcat (char *, const char *, size_t)βstrlcat, thelstands for "we're being responsible", returnssize_tπsize_t strlcpy (char *, const char *, size_t)βstrlcpy, same responsible energy,size_tout the door βsize_t strlen (const char *)βstrlen, THE legend, the icon, the moment, returnssize_tπchar * strlwr (char *)βstrlwr, lowercase era,char *only πΈchar * strncat (char *, const char *, size_t)βstrncat,strcat's boundaried sister,size_tin the mix π¦int strncmp (const char *, const char *, size_t)βstrncmp, compare but limited, returnsintπchar * strncpy (char *, const char *, size_t)βstrncpy, copy with asize_tcap, so chic β¨int strncasecmp (const char *, const char *, size_t)βstrncasecmp, caseless AND bounded, a whole overachiever π₯size_t strnlen (const char *, size_t)βstrnlen,strlenbut she has limits (healthy!), returnssize_tπ«Άchar * strpbrk (const char *__s, const char *__accept)βstrpbrk, named args__sand__accept, very official πchar * strrchr (const char *, int)βstrrchr, thergirlie, going the other direction πchar * strrev (char *)βstrrev, reversing the whole situation,char *πchar * strsep (char **, const char *)βstrsep, note thechar **bestie, she's pointer-to-pointer coded πsize_t strspn (const char *__s, const char *__accept)βstrspn,__sand__accept, returnssize_tβchar * strstr (const char *, const char *)βstrstr, the search icon, twoconst char *s, no notes πchar * strtok (char *, const char *)βstrtok, the tokenizer, iconic and chaotic πΈchar * strtok_r (char *, const char *, char **)βstrtok_r, the reentrant version, she has achar **and she's proud π¦char * strupr (char *)βstrupr, uppercase era to close us out,char *only π
π Author π
this page was generated automatically by Doxygen for AVR-LibC from the source code β so nobody hand-wrote this, it just manifested, and honestly? that's giving main character energy πβ¨
okay bestie that's the whole page π every macro, every function, every signature, all present and accounted for. nothing skipped, nothing invented, we simply slayed the documentation. π«Ά
and that's a wrap, love u, bye!! this was AVR-LibC, Version 2.2.1 β she's the source, she's the version, she's the moment, and she said periodt π ππ
π¦ where this page comes from
- debian trixie: avr-libc 1:2.2.1-1 Β· BSD-3-Clause
- ubuntu questing: avr-libc 1:2.2.1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms