Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libcfg+/src/cfgfile.c between version 1.2 and 1.3

version 1.2, 2001/10/23 00:05:18 version 1.3, 2001/12/01 01:27:47
Line 1 
Line 1 
   
 static int cfg_cfgfile_get_next_opt(const CFG_CONTEXT con);  static int cfg_cfgfile_get_next_opt(const CFG_CONTEXT con);
 /* static char *dynamic_fgets(FILE *fp); */  
   
   
 static int cfg_cfgfile_get_next_opt(const CFG_CONTEXT con) {  static int cfg_cfgfile_get_next_opt(const CFG_CONTEXT con) {
         return 0;          return 0;
 }  }
   
 /*  
 static char *dynamic_fgets(FILE *fp) {  
         char *ptr;  
         char temp[128];  
         int i;  
   
         ptr = malloc(1);  
         if (ptr == NULL)  
                 return (NULL);  
   
         *ptr = '\0';  
         for (i = 0;; i++) {  
                 if (fgets(temp, 128, fp) == NULL) {  
                         if (ferror(fp) != 0 || i == 0) {  
                                 free(ptr);  
                                 return (NULL);  
                         }  
                         return (ptr);  
                 }  
                 ptr = realloc(ptr, 127 * (i + 1) + 1);  
                 if (ptr == NULL)  
                         return (NULL);  
   
                 strcat(ptr, temp);  
                 if (strchr(temp, '\n') != NULL) {  
                         *strchr(ptr, '\n') = '\0';  
                         return (ptr);  
                 }  
         }  
 }  
 */  
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top