Skip to content

Commit 20ff227

Browse files
author
Stefan Bucur
committed
Added a simple memcpy/memset test.
1 parent bccf584 commit 20ff227

2 files changed

Lines changed: 12 additions & 17 deletions

File tree

examples/memcpytest.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <stdlib.h>
2+
#include <string.h>
3+
#include <stdio.h>
4+
5+
int main(int argc, char **argv) {
6+
char buff[256];
7+
8+
memset(buff, 0, 256);
9+
buff[0] = 'a';
10+
printf("%s\n", buff);
11+
return 0;
12+
}

runtime/Intrinsic/memset.c

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)