SASC
DVBSoftCAM

cReadLine Class Reference

#include <tools.h>

List of all members.

Public Member Functions

 cReadLine (void)
 ~cReadLine ()
char * Read (FILE *f)

Detailed Description

Definition at line 251 of file tools.h.


Constructor & Destructor Documentation

cReadLine::cReadLine ( void  )
cReadLine::~cReadLine ( )

Member Function Documentation

char * cReadLine::Read ( FILE *  f)

Definition at line 618 of file tools.cpp.

References NULL.

Referenced by cConfig< cTimer >::Load().

{
  if (fgets(buffer, sizeof(buffer), f) > 0) {
     int l = strlen(buffer) - 1;
     if (l >= 0 && buffer[l] == '\n')
        buffer[l] = 0;
     return buffer;
     }
  return NULL;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines