santosh wrote:
Ben Bacarisse wrote:
>
>
>
>
You are right. In fact, would the cast to unsigned char be
necessary at all, given that all the characters returned by
fgets are guaranteed to be positive integers?
>Presumably you intended to write isblank((unsign ed char)*line)
>here. I can't see any value in the cast to int.
>here. I can't see any value in the cast to int.
You are right. In fact, would the cast to unsigned char be
necessary at all, given that all the characters returned by
fgets are guaranteed to be positive integers?
type of the array is 'char', which may or may not be unsigned.
7.19.7.2 The fgets function
Synopsis
[#1]
#include <stdio.h>
char *fgets(char * restrict s, int n,
FILE * restrict stream);
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
** Posted from http://www.teranews.com **
Leave a comment: