cScm Configuration Daemon

cScm – is a tool to convert SCM configuration files into binary format and store its in shared memory for reading by cSvn-ui and cGit-ui CGI scripts

12 Commits   0 Branches   1 Tag

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>

#include <defs.h>

#include <error.h>
#include <msglog.h>


void *xmalloc( size_t n )
{
  void *p = NULL;

  p = malloc( n );
  if( !p ) no_space();
  bzero( p, n );

  return( p );
}

void *xrealloc( void *b, size_t n )
{
  void *p = NULL;

  p = realloc( b , n );
  if( !p ) no_space();

  return( p );
}