Thread: compiler warning still won't go away

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    60

    compiler warning still won't go away

    i am using the ctype.h header file too

    Code:
    void encrypt(char secret[],char message[],char coded[]){    
      int count; 
      char letter;     
      for(count = 0;count < MAXLEN;count++){     
        letter = message[count];   
        if(isalpha(letter)){
          letter = tolower(letter);  
          letter = secret[letter - 'a']; 
          coded[count] = letter; 
        }    
      }  
    }

  2. #2
    Beautiful to C Aia's Avatar
    Join Date
    Jun 2007
    Posts
    124
    And what would that warning be?
    As far I can see there's not reason for your compiler to complain.
    Post the warning.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  3. compiler warning message
    By alice in forum C Programming
    Replies: 2
    Last Post: 04-18-2004, 12:53 PM
  4. bcc32 compiler warning when assigning null to pointer
    By finnepower in forum C++ Programming
    Replies: 4
    Last Post: 06-25-2002, 11:37 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM