OSDN Git Service
(root)
/
linuxcw
/
linuxcw.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
20080805
[linuxcw/linuxcw.git]
/
linuxcw
/
libcw
/
note_no.c
1
#include<stdio.h>
2
#include<string.h>
3
#include"libbeep.h"
4
#include"libcw.h"
5
6
7
int note_no(cw_length * cw_len, char * note)
8
{
9
int co, max;
10
max = (int)strlen(note);
11
12
if(max > BUFF_LENG){
13
return 58;
14
}
15
16
for(co = 0; co < CHAR_LENG; co++){
17
if(0 == (memcmp(cw_len->roman.note_sign[co], note, max))){
18
return co;
19
}
20
}
21
22
return 58;
23
}
24
25
26