view common/portpath.c @ 163:8cfcd38a9bb3

Change coding style for cinst main / windowsstore to GNU The kdelibs / qt coding style is not really suited for plain C and looks irritiating when combined with standard C functions.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 25 Mar 2014 10:29:12 +0000
parents 4a4b5e640d1a
children 199878f09bf1
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
  if (path){};
  fprintf(stderr, "Windows Suport missing!");
  abort();
#endif
 
}

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

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