Created
March 17, 2013 15:00
-
-
Save austa/5181928 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File: main.c | |
| * Author: alaattin | |
| * | |
| * Created on 17 Mart 2013 Pazar, 16:50 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| /* | |
| * | |
| */ | |
| char str_cpy(char [], char[]); | |
| int main(int argc, char** argv) { | |
| char dizi1 [] = {}; | |
| char dizi2 [] = {"aletbaba"}; | |
| str_cpy(dizi1, dizi2); | |
| printf("Dizi1'in içerini:%s \n", dizi1); | |
| return (EXIT_SUCCESS); | |
| } | |
| char str_cpy(char kelime1[], char kelime2[]){ | |
| int i = 0; | |
| for(i = 0; kelime2[i] !='\0'; i++ ){ | |
| kelime1[i] = kelime2[i]; | |
| } | |
| return kelime1; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment