aboutsummaryrefslogtreecommitdiff
path: root/sys/libc/free.c
blob: 4edd18c070d9cb9eeae6ff3342962d312716f473 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/

#define import_spp
#define	import_libc
#define	import_xnames
#include <iraf.h>


/* FREE -- Free a block of storage previously allocated by malloc, calloc,
** or realloc.
*/
void
free (
  char	*buf
)
{
	XINT	x_ptr, x_dtype = TY_CHAR;

	x_ptr = Memcptr (buf);
	MFREE (&x_ptr, &x_dtype);
}