projects
/
cacao.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* configure.ac: New switch for disabling -O2 (--disable-optimizations).
[cacao.git]
/
contrib
/
vmlog
/
t
/
memdup.c
1
#include "t/prolog.h"
2
3
int main(int argc,char **argv)
4
{
5
char *str = "this is a test";
6
char *p;
7
8
p = (char*) vmlog_memdup(str,strlen(str));
9
NOTNULL(p);
10
IS(memcmp(p,str,strlen(str)),0);
11
12
p = (char*) vmlog_memdup("",0);
13
NOTNULL(p);
14
15
return 0;
16
}
17
18
/* vim: noet ts=8 sw=8
19
*/
20