Rev 3376 | Rev 3480 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3376 | Rev 3377 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef UTIL_H |
1 | #ifndef UTIL_H |
2 | #define UTIL_H |
2 | #define UTIL_H |
3 | 3 | ||
- | 4 | #include "scli.h" |
|
- | 5 | ||
4 | /* Internal string handlers */ |
6 | /* Internal string handlers */ |
5 | extern char * cli_strdup(const char *); |
7 | extern char * cli_strdup(const char *); |
6 | extern int cli_redup(char **, const char *); |
8 | extern int cli_redup(char **, const char *); |
7 | extern int cli_psprintf(char **, const char *, ...); |
9 | extern int cli_psprintf(char **, const char *, ...); |
8 | extern char * cli_strtok_r(char *, const char *, char **); |
10 | extern char * cli_strtok_r(char *, const char *, char **); |
9 | extern char * cli_strtok(char *, const char *); |
11 | extern char * cli_strtok(char *, const char *); |
- | 12 | ||
- | 13 | /* Utility functions */ |
|
10 | extern unsigned int cli_count_args(char **); |
14 | extern unsigned int cli_count_args(char **); |
- | 15 | extern unsigned int cli_set_prompt(cliuser_t *usr); |
|
11 | 16 | ||
12 | #endif |
17 | #endif |