From f846de4b3d79d8d60429ae1b695fb7e8838c765b Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar <70900673+ujjwalll26@users.noreply.github.com> Date: Fri, 2 Oct 2020 19:34:55 +0530 Subject: [PATCH] Added basic DMA --- DMA.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 DMA.c diff --git a/DMA.c b/DMA.c new file mode 100644 index 0000000..601b3f0 --- /dev/null +++ b/DMA.c @@ -0,0 +1,32 @@ +/*This program shows the use of + *very basic functions of Dynamic memory + *allocation in C. + */ +#include +#include +int linearsearch(int *a,int n,int key) +{ + int i=0; + for(int i=0;i