Re: Replacing fgets
  Home FAQ Contact Sign in
comp.lang.c only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.c Profile…
 Up
Re: Replacing fgets         


Author: pete
Date: Sep 19, 2006 17:28

FireHead wrote:
>
> Hello C World & Fanatics
>
> I am trying replace fgets and provide a equavivalant function

I'm using line_to_string these days.

/* BEGIN type_1.c */

#include
#include
#include
#include

#define ARGV_0 "type_1"

struct list_node {
struct list_node *next;
void *data;
};
Show full article (4.85Kb)
2 Comments
Re: Replacing fgets         


Author: Keith Thompson
Date: Sep 22, 2006 13:14

"FireHead" htech.health.nsw.gov.au> writes:
> After a look for R&D I am trying the combine Pete(s) algorithm code and
> I think it was Bill Reid(s) code.
>
> As a dumb user:
> I want use code in the following
>
> while( feof( File_Pointer) == EXIT_SUCCESS){
> if( read_Line( File_Pointer, returned_buffer)
> printf("%%s", returned_buffer);
> }
[...]

EXIT_SUCCESS doesn't mean what you think it means.
Show full article (2.07Kb)
no comments
Re: Replacing fgets         


Author: Keith Thompson
Date: Sep 22, 2006 22:45

Please don't top-post. See <http://www.caliburn.nl/topposting.html>
and <http://www.cpax.org.uk/prg/writings/topposting.php>.

"FireHead" htech.health.nsw.gov.au> writes:
> Keith Thompson wrote:
>> "FireHead" htech.health.nsw.gov.au> writes:
>>> After a look for R&D I am to trying the combine Pete...
Show full article (1.92Kb)
no comments