Other errors are:<br>
<br>
<br>
The function prototype:<br>
int ConvertToAlpha(char *in, char *out, int size);<br>
<br>
Doesn't match the function:<br>
<br>
int ConvertToAlpha();char *in; /* Pointer to input buffer (contains alpha, digit, spaces) */<br>
char *out; /* Pointer to output buffer (will contain morse code) */<br>
int size; /* Size of the output buffer */<br>
<br>
Also, the enclosing braces {} of the function body appear to be missing.....<br>
<br>
Another error:<br>
<br>
/* Signify we found the token match.*/<br>
blFound = 0;<br>
<br>
should probably read (based on other code samples):<br>
<br>
/* Signify we found a token match.*/<br>
blFound = 1;<br>
<br>
This is a VERY good argument for using #defines:<br>
<br>
#define TOKEN_FOUND 1<br>
#define TOKEN_NOT_FOUND 0<br>
<br>
And writing:<br>
<br>
/* Signify we found a token match.*/<br>
blFound = TOKEN_FOUND;<br>
<br>
This makes these silly typos much easier to catch!<br>
<br>
Another error:<br>
<br>
/* Is this an alphabetical morse code token?*/<br>
for(iIndex = 0; iIndex < 26 && !blFound; iIndex++)<br>
{<br>
--> if(!strncmp(*pszCurrIn, MorseAlphabet[iIndex],<br>
strlen(MorseAlphabet[iIndex])))<br>
<br>
Take the * out..... You want to pass the address of the string to strncmp NOT the value it is pointing to!<br>
<br>
I did actually finally get your code to compile after fixing these and other errors, but it would only decode the first character of your morse string. Another problem is that your code has lost it's formatting by being posted on a Web page in HTML and has lost its readability... (Spaces have been truciated)<br>
Anyways.... I hope this helps you out. The best way to learn coding is to debug & debug & debug & debug & debug....

<br>
<br>
<br>
<p> <br><a href=mailto:Kim_Christensen@telus.net>Kim_Christensen@telus.net</a><br><a href=
Page</a><br>