xref: /titanic_41/usr/src/lib/libast/common/man/mem.3 (revision d29f5a711240f866521445b1656d114da090335e)
.fp 5 CW .. .nr ;G \\n(.f .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" \\*(;G .. .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" .. .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" ..

0

..

..

MEM 3
NAME
mem - fixed string routines
SYNOPSIS
.EX #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
.L mematoe converts n ASCII characters in in to EBCDIC characters in out . in and out may be the same.

.L memdup 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.

.L memetoa converts n EBCDIC characters in in to ASCII characters in out . in and out may be the same.

.L memzero sets the first n bytes in buf to 0 .

"SEE ALSO"
Proposed Bell Laboratories ASCII/EBCDIC standard, April 16, 1979.

str(3), vmalloc(3)