fs.c
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void)
{
char abc[30][5] = { ".-" , "-..." , "-.-." , "-.." , "." , "..-." , "--." , "...." , ".." , ".---" , "-.-" , ".-.." , "--" , "-." , "---" , ".--." , "--.-" , ".-." , "..." , "-" , "..-" , "...-" , ".--" , "-..-" , "-.--" , "--..", "..--", "---.", ".-.-", "----"};
char c;
int cisla[1000];
char *str;
char *vyb;
int pocet=0, poc2=0, i=0;
{
if(c=='\n')
{
pocet--;
while(pocet>=0)
{
strncpy(vyb
,&str
[poc2
],cisla
[pocet
]); poc2+=cisla[pocet];
pocet--;
for(i=0; i<30; i++)
{
{
if(i<26)
else
{
if(i==26)
else if(i==27)
else if(i==28)
else
}
}
}
}
str[0] = '\0';
pocet=0;
poc2=0;
}
else
{
if((c>='A') && (c<='Z'))
{
cisla
[pocet
]=strlen(abc
[c
-'A']); }
else
{
if(c=='_')
else if(c==',')
else if(c=='.')
else
cisla[pocet]=4;
}
pocet++;
}
}
return 0;
}