STR$GET1_DX (OpenVMS) STR$GET1_DX (OpenVMS)
NAME
malloc - allocate memory
strdup - allocate memory for a string an copy string into memory
STR$GET1_DX - Allocate one dynamic string
EXPLAINATION
The Digital UNIX malloc function provides functionality similar to the
OpenVMS STR$GET1_DX string manipulation routine. Because UNIX strings
are just pointers to memory buffers, the only action required to allo‐
cate space for a string is to allocate the memory. Be sure to call the
free function on any memory allocated with the malloc family of func‐
tions once the memory is no longer needed. The strdup function will
allocate memory and copy the string passed to it as an argument into
the allocated memory. Be sure to free this memory once it is no longer
needed. The amount of memory allocated by strdup is only the size of
the string plus the null terminating character.
RELATED INFORMATION
Digital UNIX Functions:
malloc(3), free(3), strdup(3) delim off
STR$GET1_DX (OpenVMS)