MEM(3)

πŸ“¦ version 93vu, in opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

okay so this is mem(3) from the Library Functions Manual, bestie β€” and the name is mem, aka fixed string routines. It’s giving very specific, very useful, no-cap string energy. πŸ’…βœ¨

🌸 SYNOPSIS 🌸

#include <ast.h>

void    mematoe(void* out, const void* in, size_t n);
void*   memdup(const void* buf, size_t n)
void    memetoa(void* out, const void* in, size_t n);
void*   memzero(void* buf, size_t n);

πŸ’– DESCRIPTION πŸ’–

  • mematoe β€” converts n ASCII characters in in to EBCDIC characters in out. And yes bestie, in and out may be the same, so in-place glow-up is allowed. πŸ”₯
  • memdup β€” copies the n byte buffer buf to a new location provided by malloc(3) and returns a pointer to the new copy. If malloc(3) fails, 0 is returned. πŸ˜­πŸ’€
  • memetoa β€” converts n EBCDIC characters in in to ASCII characters in out. Again, in and out may be the same. ✨
  • memzero β€” sets the first n bytes in buf to 0. Clean-slate, fresh-start, reset-the-vibe behavior. πŸ«ΆπŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

  • Proposed Bell Laboratories ASCII/EBCDIC standard, April 16, 1979.
  • str(3), vmalloc(3)

That’s the whole MEM(3) page from the Library Functions Manual, bestie β€” the footer didn’t list a separate source/version or date, so we’re signing off right here. Bye, love you, read your man pages πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from