/*
- $Id: unix.c,v 1.1 2010-01-05 13:48:47 franklahm Exp $
+ $Id: unix.c,v 1.3 2010-01-26 08:05:17 didg Exp $
Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
This program is free software; you can redistribute it and/or modify
GNU General Public License for more details.
*/
+/*!
+ * @file
+ * Netatalk utility functions
+ */
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <atalk/util.h>
#include <atalk/unix.h>
+/*!
+ * @brief get cwd in static buffer
+ *
+ * @returns pointer to path or pointer to error messages on error
+ */
extern const char *getcwdpath(void)
{
static char cwd[MAXPATHLEN + 1];
char *p;
- if ((p = getcwd(&cwd, MAXPATHLEN)) != NULL)
+ if ((p = getcwd(cwd, MAXPATHLEN)) != NULL)
return p;
else
return strerror(errno);