My Project
Loading...
Searching...
No Matches
az_memalloc.c
Go to the documentation of this file.
1// kernel_lib_printf_functions
2/*
3 * Kernel Lib Printf Functions
4 *
5 * Maintainer: Park Jiwoo
6 *
7 * Copyright (C) 2024 Park-Jiwoo
8 *
9 */
10#include "kernel_pr_he.h"
11#include <stdlib.h>
12
13void *az_memalloc(size_t size)
14{
15 void *tmp;
16
17 tmp = malloc(size);
18
19 if (tmp == NULL)
20 return (NULL);
21
22 return (az_memset(tmp, 0, size));
23}
void * az_memalloc(size_t size)
Definition az_memalloc.c:13
void * az_memset(void *b, int c, size_t len)
Definition az_memset.c:12