Skip to content

Instantly share code, notes, and snippets.

@austa
Last active December 15, 2015 02:59
Show Gist options
  • Save austa/5190727 to your computer and use it in GitHub Desktop.
Save austa/5190727 to your computer and use it in GitHub Desktop.
/*
* File: main.c
* Author: alaattin
*
* Created on 18 Mart 2013 Pazartesi, 22:23
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
/*
*
*/
int main(int argc, char** argv) {
char kaynak [] = "Ondokuz Mayis UNIVERSITESI 1975 SamsuN";
char hedef [50];
int i = 0;
while( kaynak [i] != '\0'){
if( isupper(kaynak[i]) != 0){
sscanf(hedef,"%s", kaynak[i] );
i++;
}
else if(islower(kaynak[i] != 0)){
i++;
}
else {
i++;
}
}
printf("%s\n", hedef);
return (EXIT_SUCCESS);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment