string.h(3avr)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian trixie, ubuntu questing

✨ 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) β€” the ffs girlie, taking an int __val πŸ’«
  • int ffsl (long __val) β€” same energy but she's long coded, ffsl with long __val 🌈
  • int ffsll (long long __val) β€” the long long edition, 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 with const void *, int, size_t πŸ”
  • int memcmp (const void *, const void *, size_t) β€” memcmp, the compare girlie, two const void * and a size_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 the size_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 with const char * and an int πŸ™ˆ
  • char * strchrnul (const char *, int) β€” strchrnul, the nul twist, very mysterious, very main character 🌸
  • int strcmp (const char *, const char *) β€” strcmp, dueling const char *s, and she returns an int πŸ’«
  • char * strcpy (char *, const char *) β€” strcpy, copy queen, char * into const char * ✨
  • int strcasecmp (const char *, const char *) β€” strcasecmp, the case-insensitive compare bestie, returns int πŸ”₯
  • 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 __s and __reject, returns size_t 🫢
  • char * strdup (const char *s1) β€” strdup, the duplicator, taking const char *s1 πŸ’–
  • char * strndup (const char *s, size_t n) β€” strndup, dupe but with a size_t n limit, we love a boundaried queen πŸ’…
  • size_t strlcat (char *, const char *, size_t) β€” strlcat, the l stands for "we're being responsible", returns size_t πŸŽ€
  • size_t strlcpy (char *, const char *, size_t) β€” strlcpy, same responsible energy, size_t out the door ⭐
  • size_t strlen (const char *) β€” strlen, THE legend, the icon, the moment, returns size_t πŸ‘‘
  • char * strlwr (char *) β€” strlwr, lowercase era, char * only 🌸
  • char * strncat (char *, const char *, size_t) β€” strncat, strcat's boundaried sister, size_t in the mix πŸ¦‹
  • int strncmp (const char *, const char *, size_t) β€” strncmp, compare but limited, returns int πŸ’œ
  • char * strncpy (char *, const char *, size_t) β€” strncpy, copy with a size_t cap, 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, strlen but she has limits (healthy!), returns size_t 🫢
  • char * strpbrk (const char *__s, const char *__accept) β€” strpbrk, named args __s and __accept, very official 🌈
  • char * strrchr (const char *, int) β€” strrchr, the r girlie, going the other direction πŸ’–
  • char * strrev (char *) β€” strrev, reversing the whole situation, char * πŸ’…
  • char * strsep (char **, const char *) β€” strsep, note the char ** bestie, she's pointer-to-pointer coded πŸŽ€
  • size_t strspn (const char *__s, const char *__accept) β€” strspn, __s and __accept, returns size_t ⭐
  • char * strstr (const char *, const char *) β€” strstr, the search icon, two const 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 a char ** 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