Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1208/5

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Unset variables.
 [jmk] --rw-rw-r-- M 960117 glenda sys 263 Dec  8 12:29 sys/src/ape/lib/ap/stdio/fgets.c
	/n/sourcesdump/2005/1208/plan9/sys/src/ape/lib/ap/stdio/fgets.c:3,9 - 
	/n/sourcesdump/2005/1209/plan9/sys/src/ape/lib/ap/stdio/fgets.c:3,9
	   */
	  #include "iolib.h"
	  char *fgets(char *as, int n, FILE *f){
	- 	int c;
	+ 	int c=0;
	  	char *s=as;
	  	while(n>1 && (c=getc(f))!=EOF){
	  		*s++=c;


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.