C
functions for parsing alphabet into NATO phonetic alphabet and vice versa via files or command-line.
It accesses an element from the nato
array. The array index is calculated by subtracting the character 'A' (65 in ASCII) from the singleCharacter
. This effectively converts the uppercase character (A-Z) to its corresponding index in the nato
array (0-25).
Letter | NATO |
---|---|
A | Alfa |
B | Bravo |
C | Charlie |
D | Delta |
E | Echo |
F | Foxtrot |
G | Golf |
H | Hotel |
I | India |
J | Juliett |
K | Kilo |
L | Lima |
M | Mike |
N | November |
O | Oscar |
P | Papa |
Q | Quebec |
R | Romeo |
S | Sierra |
T | Tango |
U | Uniform |
V | Victor |
W | Whiskey |
X | Xray |
Y | Yankee |
Z | Zulu |