ldbl_readline.c

Go to the documentation of this file.
00001 /****************************************************************************/
00002 /*                                                                          */
00003 /*  This file is part of QSopt_ex.                                          */
00004 /*                                                                          */
00005 /*  (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash,      */
00006 /*  and Daniel Espinoza                                                     */
00007 /*                                                                          */
00008 /*  Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his     */
00009 /*  copyright in QSopt.                                                     */
00010 /*                                                                          */
00011 /*  This code may be used under the terms of the GNU General Public License */
00012 /*  (Version 2.1 or later) as published by the Free Software Foundation.    */
00013 /*                                                                          */
00014 /*  Alternatively, use is granted for research purposes only.               */
00015 /*                                                                          */
00016 /*  It is your choice of which of these two licenses you are operating      */
00017 /*  under.                                                                  */
00018 /*                                                                          */
00019 /*  We make no guarantees about the correctness or usefulness of this code. */
00020 /*                                                                          */
00021 /****************************************************************************/
00022 
00023 /* RCS_INFO = "$Id: line_reader.c,v 1.2 2003/11/05 16:49:52 meven Exp $"; */
00024 
00025 #include "config.h"
00026 #include <stdio.h>
00027 #include "ldbl_iqsutil.h"
00028 #include "ldbl_readline.h"
00029 
00030 
00031 /* #ifdef _WINDOWS*/
00032 ldbl_qsline_reader *ldbl_ILLline_reader_new (
00033   ldbl_qsread_line_fct fct,
00034   void *data_src)
00035 {
00036   ldbl_qsline_reader *reader;
00037   int rval = 0;
00038 
00039   ILL_NEW (reader, ldbl_qsline_reader);
00040   if (reader != NULL)
00041   {
00042     reader->read_line_fct = fct;
00043     reader->data_src = data_src;
00044     reader->error_collector = NULL;
00045   }
00046 CLEANUP:
00047   return reader;
00048 }
00049 
00050 void ldbl_ILLline_reader_free (
00051   ldbl_qsline_reader * reader)
00052 {
00053   ILL_IFFREE (reader, ldbl_qsline_reader);
00054 }
00055 
00056 /* #endif */

Generated on Thu Mar 29 09:32:31 2012 for QSopt_ex by  doxygen 1.4.7