Re: HP Secure Web Console

From: Thillmann, Rolf (Rolf.Thillmannat_private)
Date: Tue Dec 28 1999 - 06:46:45 PST

  • Next message: Alan Cox: "Re: BUG? Non-root user can configure traffic shaper (2.2.13) (fwd)"

    William Randolph Royere III wrote:
    >
    > #include <stdio.h>
    > #include <ctype.h>
    >
    > void main() {
    >    int user_input;
    >    while((user_input=getchar())) {
    >
    >            if (islower(user_input))
    >             user_input = 'a' + (user_input - 'a' + 18) % 26;
    >           if (isupper(user_input))
    >             user_input = 'A' + (user_input - 'A' + 18) % 26;
    >
    >          /* convert to string and put a reverse string function here */
    >         putchar(user_input);
    >  }
    
    I think the program has to be modified a bit:
    
    ...
              if (islower(user_input))
                user_input = 'A' + (user_input - 'a' + 18) % 26;
              else if (isupper(user_input))
                      user_input = 'a' + (user_input - 'A' + 18) % 26;
    ...
    
    
    --
    Rolf Thillmann
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 15:23:48 PDT