TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Jeff Lockwood
date: 1995-12-08 17:06:52
subject: Re: fgets

In a message of 03 Dec 95 Paul Edwards wrote to All:

 PE> Why is fgets defined as...

 PE> char *fgets(char *s, int n, FILE *stream);

 PE> instead of 

 PE> char *fgets(char *s, size_t n, FILE *stream);

 PE> ???  BFN.  Paul.

Because it represents the maximum nubber of bytes the function will read ,
even if it doesn't find an EOL character. It is not the actual size of the
line it will read.


Jeff Lockwood

--- Spot 1.3a Unregistered
* Origin: -+- Spot -+- (3:713/914.14)
SEEN-BY: 50/99 620/243 623/630 711/401 409 410 413 430 510 807 808 809 932
SEEN-BY: 711/934 712/508 515 713/111 317 601 611 615 618 700 826 888 914
SEEN-BY: 714/906 800/1 7877/2809
@PATH: 713/914 615 888 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.