Re: lug-bg: grep ? cat? tail?
- Subject: Re: lug-bg: grep ? cat? tail?
- From: vasil@xxxxxxxxxxx (Vasil Kolev)
- Date: Fri, 17 May 2002 17:46:24 +0300 (EEST)
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);
============================================================================
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
============================================================================
|