OSDN Git Service
(root)
/
zither
/
ds-zither.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
I was library can be compiled 20140223
[zither/ds-zither.git]
/
libms
/
null_free.c
1
#include<stdio.h>
2
#include<stdlib.h>
3
#include<string.h>
4
5
char * null_free(char * data)
6
{
7
int len;
8
len = (int)strlen(data);
9
10
if(0 < len){
11
12
#ifdef NULL_FREEBUG
13
printf("null_free(%d) %s\n", len, data);
14
#endif
15
16
memset(data, 0x00, len);
17
}
18
19
return data;
20
}
21
22