-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 17 May 2002 17:46, you wrote: > On Fri, 17 May 2002, Ангел Вълков wrote: > > Samo 4e mernata edinica niama da e "lines" , a "words", zashtoto > > razdelitelite s koito raboti fgets() sa '\xd' '\x9' '\xa' i shpacia. > > On GNU systems izpolzwai getline(). > > On non GNU systems: fscanf(f,"%100000[^'\n']\n",l); > > Shah s peshkata... Otkoga ' ' e razdelitel za fgets? az pone ne sum > zabelqzal takova neshto.... > Citat ot man-a: > > fgets() reads in at most one less than size characters from stream and > stores them into the buffer pointed to by s. Reading stops after an EOF > or a newline. If a newline is read, it is stored into the buffer. A '\0' > is stored after the last character in the buffer. > > Inache tova koeto kaza za razdelitelite maj vazhi po-skoro kato pravish > fscanf(f,"%s",str); > Izvinivam se za predishnia post. Az sym v greshka. Naistina se zabludih ot razdelitelite za "string" na scanf(). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org
iD8DBQE85itwmx3uqe61brwRAr71AJ9m5/Sc1dxyVg2h+G23ITYwVQ8mIQCfbwcV Gsh2xZaTAGrJhc2Dp2zYE7Y= =WXmE -----END PGP SIGNATURE----- ============================================================================ A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers). http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html ============================================================================