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
/
rm_crlf.c
1
// rm_crlf.c
2
// $Id: rm_crlf.c,v 1.1.1.1 2007/09/19 05:49:54 sendan Exp $
3
// masashi shimakura
4
5
#include<stdio.h>
6
7
/*------------------ RM CRLF -------------------*/
8
int rm_crlf( char data[], int count )
9
{
10
static int inA;
11
inA = 0;
12
for(; inA < count; ){
13
if( data[inA] == (char)0x0a || data[inA] == (char)0x0d ){
14
data[inA] = (char)0x00;
15
}
16
inA++;
17
}
18
return(inA);
19
}
20
21
22