/*
 * misc: miscellaneus dockapp routines
 * Copyright(c) 1997 by Alfredo K. Kojima
 * Copyright(c) 2004 by wave++ "Yuri D'Elia" <wavexx@users.sf.net>
 * Distributed under GNU GPL (v2 or above) WITHOUT ANY WARRANTY.
 */

#ifndef MISC_H
#define MISC_H

#include <sys/types.h>


/* Tokenize a shell command */
void
parse_command(const char*, char***, int*);

/* Exec a command */
pid_t
exec_command(const char*);

/* %-style substitution on a string */
typedef struct
{
  char c;
  const char* value;
} perctbl_t;

char*
percsubst(const char* string, const perctbl_t* table, int elements);

#endif
