1 /* ----------------------------------------------------------------------- *
3 * Copyright 2010 Gene Cumm - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
14 * Display present (current) working directory
23 /* Size of path buffer string */
26 # define PATH_MAX NAME_MAX
28 # define PATH_MAX FILENAME_MAX
31 # endif /* NAME_MAX */
37 char pwd
[PATH_MAX
], *pwdptr
;
39 pwdptr
= getcwd(pwd
, PATH_MAX
);
47 puts("ERROR: getcwd() returned NULL");