system()

Bassoukos Tassos abas at aix.meng.auth.gr
Mon Aug 23 15:46:43 EEST 1999


On Mon, 23 Aug 1999, NooBiouZ the UnstoPPaBLouZ SeXiouZ maChinouZ wrote:

> > mporo meta px apo system("echo delta"); na paro piso to "delta" se ena
> > string?
> 
> Egw thelw na kanw akribws to antitheto dhladh na metaferw ena string sthn 
> system...exei kaneis kamia idea?
> 
> ftiaxnw mia mp3 database se C kai exw ta ekshs....
> #define data 65
> ..
> ..
> printf("dwse to onoma tou album :");
> scanf("%c", album[data];

mhpws 8es na peis scanf("%s",album); ?
to `man scanf` deixnei oti diabazei mexri to prwto whitespace character,
gia na diabazei me to enter des thn gets/fgets

> system("echo "To string pou einai ston pinaka album[data]" >> albums.txt");

char buf[512];
sprintf(buf,"echo \"%s\" >>albums.txt");
system(buf);

-- 
Bassoukos Tassos   +30 31 996011 / +30 93 7109954
 Computer Shaman and Informatics Thaumaturge

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list