Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cms_aup.cc File Reference

#include "rcs_defs.hh"
#include <errno.h>
#include <limits.h>
#include <float.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "cms.hh"
#include "cms_aup.hh"
#include "rcs_prnt.hh"
#include "dbg_mem.h"

Include dependency graph for cms_aup.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define DEFAULT_WARNING_COUNT_MAX   100

Functions

void corrected_free (void *ptr)
int safe_strlen (char *string, int max)


Define Documentation

#define DEFAULT_WARNING_COUNT_MAX   100
 

Definition at line 63 of file cms_aup.cc.


Function Documentation

void corrected_free void *    ptr [static]
 

Definition at line 54 of file cms_aup.cc.

00055 {
00056 #ifdef sparcworks_sun4
00057   DEBUG_FREE ((char *) ptr);
00058 #else
00059   DEBUG_FREE (ptr);
00060 #endif
00061 }

int safe_strlen char *    string,
int    max
 

Definition at line 242 of file cms_aup.cc.

Referenced by CMS_ASCII_UPDATER::update().

00243 {
00244   int retval;
00245 
00246   if (string == NULL)
00247     {
00248       return (-1);
00249     }
00250 
00251   retval = 0;
00252   while (string[retval])
00253     {
00254       if (isspace (string[retval]))
00255         break;
00256       retval++;
00257       if (retval >= max)
00258         {
00259           return (-1);
00260         }
00261     }
00262   return retval;
00263 }


Generated on Sun Dec 2 15:56:59 2001 for rcslib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001