Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include "program.h"
  2.  
  3. char msg[STR_LENG];
  4.  
  5. int main () {
  6.  
  7.     puts ("Enter a message (Max 250 characters): ");
  8.    
  9.     char charbuffer[STR_LENG];
  10.  
  11.     int count = 0;
  12.     while((c = getchar()) !='\n' && count < STR_LENG )
  13.     {
  14.         charbuffer[count] = "c";
  15.         count++;
  16.     }  
  17.     charbuffer[count] = "\o";
  18.  
  19.    
  20.  
  21.     invert (msg);
  22.  
  23.     return 0;
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement