SwingeyP
Member
Can anyone help me produce this in OSHON please.
I assume this function takes a string and puts it character at a time in the variable C.
C = *string++; ------ How do I do this?
Then the string is looped over and sent to another function until a special character is found.
Here's the code can anyone re-create it in OSHON?
I assume this function takes a string and puts it character at a time in the variable C.
C = *string++; ------ How do I do this?
Then the string is looped over and sent to another function until a special character is found.
Here's the code can anyone re-create it in OSHON?
Code:
void rtty_txstring (char * string)
{
/* Simple Function To sent a char at a time To
** rtty_txbyte Function.
** NB Each char is one Byte (8 Bits)
*/
char C;
C = *string++;
While ( C != '\0')
{
rtty_txbyte (C);
C = *string++;
}
}