21 lines
425 B
C++
21 lines
425 B
C++
// Ben Harris
|
|
|
|
#ifndef _UTIL_FNS_H_
|
|
#define _UTIL_FNS_H_
|
|
|
|
#include <string>
|
|
#include <string.h>
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
// method definitions
|
|
void ctrlCHandler(int sig);
|
|
vector<string> split(const char *str, char c = ' ');
|
|
char** v_to_cpp(vector<string> vargs);
|
|
|
|
void check_cmd_io(simple_command *cmd);
|
|
int expand_and_execute (simple_command *cmd);
|
|
bool remap_pipe_stdin_stdout(int rpipe, int wpipe);
|
|
|
|
#endif
|