include/Zycore/LibC.h(3)

πŸ“¦
version 1.5.2 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– include/Zycore/LibC.h(3) πŸ’–

okay bestie, so this is a page from the Zycore Library Functions Manual, and it's literally just the LibC abstraction layer β€” the place where Zycore goes "hey, instead of talking to your system's C library directly, talk to me" ✨ It's giving middle-management for malloc, and honestly? Iconic.


🌸 NAME 🌸

include/Zycore/LibC.h


✨ SYNOPSIS ✨

So the way that this works is you pull in these headers:

#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

πŸŽ€ Macros πŸŽ€

#define ZYAN_ERRNO   errno
#define ZYAN_VA_START   va_start
#define ZYAN_VA_ARG   va_arg
#define ZYAN_VA_END   va_end
#define ZYAN_VA_COPY(dest,  source)
#define ZYAN_FPUTS   fputs
#define ZYAN_FPUTC   fputc
#define ZYAN_FPRINTF   fprintf
#define ZYAN_PRINTF   printf
#define ZYAN_PUTC   putc
#define ZYAN_PUTS   puts
#define ZYAN_SCANF   scanf
#define ZYAN_SSCANF   sscanf
#define ZYAN_VSNPRINTF   vsnprintf
#define ZYAN_STDIN   stdin
#define ZYAN_STDOUT   stdout
#define ZYAN_STDERR   stderr
#define ZYAN_CALLOC   calloc
#define ZYAN_FREE   free
#define ZYAN_GETENV   getenv
#define ZYAN_MALLOC   malloc
#define ZYAN_REALLOC   realloc
#define ZYAN_MEMCHR   memchr
#define ZYAN_MEMCMP   memcmp
#define ZYAN_MEMCPY   memcpy
#define ZYAN_MEMMOVE   memmove
#define ZYAN_MEMSET   memset
#define ZYAN_STRCAT   strcat
#define ZYAN_STRCHR   strchr
#define ZYAN_STRCMP   strcmp
#define ZYAN_STRCOLL   strcoll
#define ZYAN_STRCPY   strcpy
#define ZYAN_STRCSPN   strcspn
#define ZYAN_STRLEN   strlen
#define ZYAN_STRNCAT   strncat
#define ZYAN_STRNCMP   strncmp
#define ZYAN_STRNCPY   strncpy
#define ZYAN_STRPBRK   strpbrk
#define ZYAN_STRRCHR   strrchr
#define ZYAN_STRSPN   strspn
#define ZYAN_STRSTR   strstr
#define ZYAN_STRTOK   strtok
#define ZYAN_STRXFRM   strxfrm

and here's the full rundown, one per bullet, no cap:

  • ZYAN_ERRNO β€” Zycore's name for errno πŸ‘‘
  • ZYAN_VA_START β€” Zycore's name for va_start ✨
  • ZYAN_VA_ARG β€” Zycore's name for va_arg ✨
  • ZYAN_VA_END β€” Zycore's name for va_end ✨
  • ZYAN_VA_COPY(dest, source) β€” Zycore's name for va_copy, and it's a real function-like macro (value is in its own section below, keep scrolling πŸ’…)
  • ZYAN_FPUTS β€” Zycore's name for fputs πŸ“
  • ZYAN_FPUTC β€” Zycore's name for fputc πŸ“
  • ZYAN_FPRINTF β€” Zycore's name for fprintf πŸ“
  • ZYAN_PRINTF β€” Zycore's name for printf πŸ“
  • ZYAN_PUTC β€” Zycore's name for putc πŸ“
  • ZYAN_PUTS β€” Zycore's name for puts πŸ“
  • ZYAN_SCANF β€” Zycore's name for scanf πŸ¦‹
  • ZYAN_SSCANF β€” Zycore's name for sscanf πŸ¦‹
  • ZYAN_VSNPRINTF β€” Zycore's name for vsnprintf πŸ¦‹
  • ZYAN_STDIN β€” Zycore's name for stdin 🌈
  • ZYAN_STDOUT β€” Zycore's name for stdout 🌈
  • ZYAN_STDERR β€” Zycore's name for stderr 🌈
  • ZYAN_CALLOC β€” Zycore's name for calloc πŸ’€
  • ZYAN_FREE β€” Zycore's name for free πŸ’€
  • ZYAN_GETENV β€” Zycore's name for getenv πŸ’€
  • ZYAN_MALLOC β€” Zycore's name for malloc πŸ’€
  • ZYAN_REALLOC β€” Zycore's name for realloc πŸ’€
  • ZYAN_MEMCHR β€” Zycore's name for memchr 🧚
  • ZYAN_MEMCMP β€” Zycore's name for memcmp 🧚
  • ZYAN_MEMCPY β€” Zycore's name for memcpy 🧚
  • ZYAN_MEMMOVE β€” Zycore's name for memmove 🧚
  • ZYAN_MEMSET β€” Zycore's name for memset 🧚
  • ZYAN_STRCAT β€” Zycore's name for strcat πŸŽ€
  • ZYAN_STRCHR β€” Zycore's name for strchr πŸŽ€
  • ZYAN_STRCMP β€” Zycore's name for strcmp πŸŽ€
  • ZYAN_STRCOLL β€” Zycore's name for strcoll πŸŽ€
  • ZYAN_STRCPY β€” Zycore's name for strcpy πŸŽ€
  • ZYAN_STRCSPN β€” Zycore's name for strcspn πŸŽ€
  • ZYAN_STRLEN β€” Zycore's name for strlen πŸŽ€
  • ZYAN_STRNCAT β€” Zycore's name for strncat πŸŽ€
  • ZYAN_STRNCMP β€” Zycore's name for strncmp πŸŽ€
  • ZYAN_STRNCPY β€” Zycore's name for strncpy πŸŽ€
  • ZYAN_STRPBRK β€” Zycore's name for strpbrk πŸŽ€
  • ZYAN_STRRCHR β€” Zycore's name for strrchr πŸŽ€
  • ZYAN_STRSPN β€” Zycore's name for strspn πŸŽ€
  • ZYAN_STRSTR β€” Zycore's name for strstr πŸŽ€
  • ZYAN_STRTOK β€” Zycore's name for strtok πŸŽ€
  • ZYAN_STRXFRM β€” Zycore's name for strxfrm πŸŽ€

forty-something aliases and not one of them is doing anything sneaky, it's all just "same thing, Zycore spelling" 🫢

πŸ’œ Typedefs πŸ’œ

typedef va_list ZyanVAList
typedef FILE ZyanFile

🌟 Detailed Description 🌟

It provides a simple LibC abstraction and fallback routines. That's the whole assignment. That's it. Simple little abstraction layer, maybe a fallback routine if your platform is being difficult πŸ™ˆ


πŸ’… Macro Definition Documentation πŸ’…

#define ZYAN_VA_COPY( dest, source)

Value:

va_copy((dest), (source))

the only macro on this whole page with a body instead of a plain rename, and she ate πŸ”₯


πŸ¦‹ Typedef Documentation πŸ¦‹

typedef FILE ZyanFile

Defines the ZyanFile datatype. that's it, that's the lore ✨

typedef va_list ZyanVAList

Defines the ZyanVAList datatype. sister typedef, equally important, equally brief πŸ’–


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Zycore from the source code. yes, a robot wrote it, and honestly the robot popped off πŸ€–βœ¨


and that's the whole page bestie, no notes πŸ’… this was Zycore, Version 1.5.2.0, from include/Zycore/LibC.h(3) β€” periodt πŸŽ€πŸŒΈπŸ’–

πŸ“¦ where this page comes from