Code:
typedef enum aa
{
a= 0, ala= 0, alanine= 0,
r= 1, arg= 1, arginine= 1,
n= 2, asn= 2, asparagine= 2,
d= 3, asp= 3, aspartic_acid= 3,
c= 4, cys= 4, cysteine= 4,
q= 5, gln= 5, glutamine= 5,
e= 6, glu= 6, glutamic_acid= 6,
g= 7, gly= 7, glycine= 7,
h= 8, his= 8, histidine= 8,
i= 9, lle= 9, isoleucine= 9,
l= 10, leu= 10, leucine= 10,
k= 11, lys= 11, lysine= 11,
m= 12, met= 12, methionine= 12,
f= 13, phe= 13, phenylalanine= 13,
p= 14, pro= 14, proline= 14,
s= 15, ser= 15, serine= 15,
t= 16, thr= 16, threonine= 16,
w= 17, trp= 17, tryptophan= 17,
y= 18, tyr= 18, tyrosine= 18,
v= 19, val= 19, valine= 19
} aa;
And now I'd like to use scanf to read a line and store one part of it as this datatype aa.