Makes abuf contain exactly n occurrences of c (converted to an ‘unsigned char’). Returns 0 if the function succeeded, or -1 if there was insufficient memory.
Sets the contents of dest to be a copy of the contents of src. Returns 0 if the function succeeded, or -1 if there was insufficient memory.
Sets the contents of abuf to be a copy of the len bytes stored at buf. len may not be negative. Returns 0 if the function succeeded, or -1 if there was insufficient memory.
Sets the contents of abuf to be a copy of the contents of astr (excluding the terminating null byte). Returns 0 if the function succeeded, or -1 if there was insufficient memory.