/*
parted - a frontend to libparted
Copyright (C) 1999-2000, 2007, 2009-2010 Free Software Foundation,
Inc.
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include "command.h"
#include "ui.h"
#include <stdlib.h>
#include <string.h>
#include "xalloc.h"
const int non_interactive)
{
if (non_interactive)
else
cmd->non_interactive = 0;
return cmd;
}
void
{
}
void
{
int i;
for (i = 0; list [i]; i++);
}
{
int i;
int ambiguous = 0;
if (!name)
return NULL;
for (i=0; list [i]; i++) {
case 2:
return list [i];
case 1:
if (!ambiguous) {
if (partial_match == -1) {
partial_match = i;
} else {
partial_match = -1;
ambiguous = 1;
}
}
}
}
if (partial_match == -1)
return NULL;
else
return list [partial_match];
}
{
return result;
}
void
{
putchar ('\n');
}
void
{
}
}
int
{
}