view common/portpath.c @ 160:bf4bfd8843bd

Add memory allocating base64 decode function
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 25 Mar 2014 10:07:12 +0000
parents 306e4db11761
children 4a4b5e640d1a 6d64d7e9fa32
line wrap: on
line source
#include "portpath.h"

#include <libgen.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>


char *
port_dirname(char *path)
{
#ifndef _WIN32
  return dirname(path);
#else
  fprintf(stderr, "Windows Suport missing!");
  abort();
#endif
 
}

char *
port_realpath(char *path)
{
#ifndef _WIN32
  return realpath(path, NULL);
#else
  fprintf(stderr, "Windows Suport missing!");
  abort();
#endif
}

http://wald.intevation.org/projects/trustbridge/