leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

agetcwd.c File Reference
#include "leafnode.h"
#include <unistd.h>
Include dependency graph for agetcwd.c:

Go to the source code of this file.


int agetcwd (char **buf, size_t *size)

Function Documentation

◆ agetcwd()

int agetcwd ( char **  buf,
size_t *  size 

allocates a buffer (stores result into *buf and *size) and fetches the current working directory. *buf must be a malloc()d buffer or NULL on first call. returns success, *buf is free()d when FALSE is returned

Definition at line 10 of file agetcwd.c.

References critmalloc(), FALSE, PATH_MAX, and TRUE.

Referenced by dogroup(), getxover(), and killcwd().