13 static bool IsInRange(
const char c,
const char begin,
const char end) {
14 return (c >= begin) && (c <= end);
23 int main(
int argc,
char **argv) {
27 string hostname = argv[1];
35 for (
unsigned i = 1; i < hostname.length(); ++i) {
36 if (hostname[i] ==
'.') {
41 (hostname[i] ==
'-') ||
50 if (hostname[hostname.length()-1] ==
'.')
53 printf(
"-fstype=cvmfs :%s\n", hostname.c_str());
static bool IsAlphanum(const char c)
static bool IsInRange(const char c, const char begin, const char end)