peri mkstemp

Vasilis Vasaitis mod at hal.csd.auth.gr
Wed Feb 10 00:01:09 EET 1999


On Sun, Feb 07, 1999 at 05:47:25PM -0000, Michalis Kabrianis wrote:
> 
> >         umask(022);
> >         fd=mkstemp(k);
> >         write(fd,"patates",sizeof("patates"));
> 
> To sizeof("patates") den exei orisma bebaia. Ayto pou theleis einai ena strlen
> strlen("patates")+1    Edw nomizw oti xreiazetai kai to +1 gia to NULL, alla den
> eimai sigouros. As mas to dieykrinisei kapoios :-)

  An valeis to +1 pou les grafetai kai to null byte mazi me ta alla. De
nomizo na einai auto pou theleis...

Vasilis Vasaitis
vvas at egnatia.ee.auth.gr

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



More information about the Linux-greek-users mailing list