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
addid library source 20140221
[zither/ds-zither.git]
/
sources
/
lib
/
libms
/
set_mem.c
1
// set_mem.c
2
// $Id: set_mem.c,v 1.1.1.1 2007/09/19 05:49:54 sendan Exp $
3
// masashi shimakura
4
5
#include<stdio.h>
6
7
8
9
/*------------------ SET MEM -------------------*/
10
int set_mem( char data[], char chA, int count )
11
{
12
int inA=0;
13
for(; inA < count; ){
14
if( data[inA] == chA ){
15
data[inA] = (char)0x00;
16
}
17
inA++;
18
}
19
return inA;
20
}
21
22
23