#include "spice.h"
#include "cpdefs.h"
Go to the source code of this file.
bool cp_getvar |
( |
char * |
n, |
|
|
int |
t, |
|
|
char * |
r |
|
) |
| |
void cp_pathfix |
( |
char * |
buf | ) |
|
Definition at line 198 of file help.c.
204 int bcnt = 0, ecnt = 0;
208 if (*t ==
'/' || *t ==
'\\') {
214 else if (*t ==
'.') {
219 if (bcnt++ < 8) *s++ = *t++;
223 if (ecnt++ < 4) *s++ = *t++;
static char buf[MAXPROMPT]
char * index(char *s, char c) const
static char * tilde_expand()
Definition at line 174 of file help.c.
177 fprintf(stderr,
"fatal error\n");
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 116 of file help.c.
128 else if ((s =
getenv(
"SPICE_LIB_DIR")) !=
NULL) {
145 XtToolkitInitialize();
146 app_con = XtCreateApplicationContext();
147 XtAppSetFallbackResources(app_con, fallback_resources);
151 fprintf(stderr,
"Error: Can't open X display");
155 XtAppAddActions(app_con, actions,
XtNumber(actions));
165 XtAppMainLoop(app_con);
static int errorhandler()
static char* tilde_expand |
( |
| ) |
|
|
static |
static char* tilde_expand |
( |
char * |
string | ) |
|
|
static |
Definition at line 244 of file help.c.
257 while (*
string && isspace(*
string))
265 if (!*
string || *
string ==
'/') {
266 pw = getpwuid(getuid());
271 while ((c = *
string) && c !=
'/')
288 return (
copy(
string));
static char buf[MAXPROMPT]
char* kw_hcopydev = "hcopydev" |