Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Save and restore current working directory. 00004 00005 Copyright (C) 1995, 1997-1998, 2003, 2009-2011 Free Software Foundation, 00006 Inc. 00007 00008 This program is free software: you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00020 00021 /* Written by Jim Meyering. */ 00022 00023 #ifndef SAVE_CWD_H 00024 # define SAVE_CWD_H 1 00025 00026 struct saved_cwd 00027 { 00028 int desc; 00029 char *name; 00030 }; 00031 00032 int save_cwd (struct saved_cwd *cwd); 00033 int restore_cwd (const struct saved_cwd *cwd); 00034 void free_cwd (struct saved_cwd *cwd); 00035 00036 #endif /* SAVE_CWD_H */