mem(3)

mem3

Fixed string routines

Usage

#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);

Overview

$1$2mematoemematoemematoemematoemematoemematoemematoemematoe converts n ASCII characters in in to EBCDIC characters in out. in and out may be the same.

$1$2memdupmemdupmemdupmemdupmemdupmemdupmemdupmemdup copies the n byte buffer buf to a new location provided by malloc(3) and returns a pointer to the new copy. 0 is returned if malloc(3) fails.

$1$2memetoamemetoamemetoamemetoamemetoamemetoamemetoamemetoa converts n EBCDIC characters in in to ASCII characters in out. in and out may be the same.

$1$2memzeromemzeromemzeromemzeromemzeromemzeromemzeromemzero sets the first n bytes in buf to 0.

Releases

Unchanged in 135 releases since Mac OS X 10.4.

  1. 10.4–26.5

From ksh 42 in macOS 26.5. Parsed by carta from the page's man source.