Subversion Repositories DevTools

Rev

Rev 5637 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5637 Rev 5659
Line 92... Line 92...
92
   /*
92
   /*
93
   **  Need both a key and a value
93
   **  Need both a key and a value
94
   */
94
   */
95
    if (key == NULL || expected == NULL)
95
    if (key == NULL || expected == NULL)
96
    {
96
    {
97
        fprintf(stderr, "Both a key and a value must be specified\n", argv[argp] );
97
        fprintf(stderr, "Both a key and a value must be specified\n" );
98
        ErrorExit( "Bad Option");
98
        ErrorExit( "Bad Option");
99
    }
99
    }
100
 
100
 
101
    /*
101
    /*
102
    ** Need to split the Key into bits 
102
    ** Need to split the Key into bits 
Line 120... Line 120...
120
            break;
120
            break;
121
        }
121
        }
122
    }
122
    }
123
    if ( !*ptrKey)
123
    if ( !*ptrKey)
124
    {
124
    {
125
        fprintf(stderr, "Could not split the key apart\n", key );
125
        fprintf(stderr, "Could not split the key apart\n" );
126
        ErrorExit( "Bad Key");
126
        ErrorExit( "Bad Key");
127
    }
127
    }
128
 
128
 
129
    /*
129
    /*
130
    ** Scan for the last \ 
130
    ** Scan for the last \ 
Line 147... Line 147...
147
        ptrValue++;
147
        ptrValue++;
148
    }
148
    }
149
 
149
 
150
    if ( ptrValue == NULL || !*ptrValue)
150
    if ( ptrValue == NULL || !*ptrValue)
151
    {
151
    {
152
        fprintf(stderr, "Could not split the key end apart\n", ptrKey );
152
        fprintf(stderr, "Could not split the key end apart\n" );
153
        ErrorExit( "Bad Key");
153
        ErrorExit( "Bad Key");
154
    }
154
    }
155
 
155
 
156
    /*
156
    /*
157
    ** Convert Prefix into known key
157
    ** Convert Prefix into known key