OSDN Git Service

addid library source 20140221
[zither/ds-zither.git] / sources / lib / libms / chmem.c
1 #include<stdio.h>
2
3
4 int chmem(char * data, int in)
5 {
6 int ret,count;
7
8 ret = 0;
9
10 if(in < 0){
11    ret = -1;
12    }
13 else{
14    for(count = 0; count < in; count++){
15       data[count] = (char)0x00;
16       }
17    }
18
19 return ret;
20 }