'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH mlib_realloc 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions" .SH NAME mlib_realloc \- reallocate a block of bytes .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ] #include \fBvoid *\fR\fBmlib_realloc\fR(\fBvoid *\fR\fIptr\fR, \fBsize_t\fR \fIsize\fR); .fi .SH DESCRIPTION .sp .LP The \fBmlib_realloc()\fR function changes the size of the block pointed to by \fIptr\fR to \fIsize\fR bytes and returns a pointer to the (possibly moved) block. .sp .LP This function is a wrapper of the standard C function \fBrealloc()\fR. .SH PARAMETERS .sp .LP The function takes the following arguments: .sp .ne 2 .mk .na \fB\fIsize\fR\fR .ad .RS 8n .rt New size of the block in bytes. .RE .sp .ne 2 .mk .na \fB\fIptr\fR\fR .ad .RS 8n .rt Pointer to a block. .RE .SH RETURN VALUES .sp .LP The function returns a pointer to the reallocated block if successful. Otherwise it returns a null pointer. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe .TE .SH SEE ALSO .sp .LP \fBmlib_free\fR(3MLIB), \fBmlib_malloc\fR(3MLIB), \fBmalloc\fR(3C), \fBattributes\fR(5)