iRODS/server/core/src/miscServerFunct.cpp
int
checkModArgType( char *arg ) {
    if ( arg == NULL || strlen( arg ) == 0 ) {
        return CAT_INVALID_ARGUMENT;
    }
    if ( ':' != arg[1] ) {
        return 0;
    }
    switch ( arg[0] ) {
    case 'n':
        return 1;
    case 'v':
        return 2;
    case 'u':
        return 3;
    default:
        return 0;
    }
}
/*
  check a chlModAVUMetadata argument; returning the type.
*/
check a chlModAVUMetadata argument; returning the type.
check a chlModAVUMetadata argument ; returning the type .
int
checkModArgType( char *arg ) {
    if ( arg == NULL || strlen( arg ) == 0 ) {
        return CAT_INVALID_ARGUMENT;
    }
    if ( ':' != arg[1] ) {
        return 0;
    }
    switch ( arg[0] ) {
    case 'n':
        return 1;
    case 'v':
        return 2;
    case 'u':
        return 3;
    default:
        return 0;
    }
}
int checkModArgType ( char * arg ) { if ( arg == NULL || strlen ( arg ) == 0 ) { return CAT_INVALID_ARGUMENT ; } if ( ' ' != arg [ 1 ] ) { return 0 ; } switch ( arg [ 0 ] ) { case ' ' : return 1 ; case ' ' : return 2 ; case ' ' : return 3 ; default : return 0 ; } }
check a chlModAVUMetadata argument; returning the type.
check a chlModAVUMetadata argument ; returning the type .