Skip to content

Instantly share code, notes, and snippets.

@pasali
Forked from austa/alistirma2.c
Last active December 15, 2015 02:59
Show Gist options
  • Save pasali/5190811 to your computer and use it in GitHub Desktop.
Save pasali/5190811 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>
/*
*
*/
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){
printf("%c\n",kaynak[i]);
hedef[i] = tolower(kaynak[i]);
}
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