Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- #include <conio.h>
- #include <time.h>
- int zwracam_dlugosc_tablicy(char *szInput)
- {
- return((int)strlen(szInput));
- }
- void kopiuje_tablice( char *Tekstdokopii, char *skad)
- {
- printf("%s", strcpy(Tekstdokopii, skad));
- }
- int main()
- {
- char szInput[10000];
- char Tekstdokopii[10000] = "Kopiuje wiadomosci";
- char skad[10000];
- fgets(szInput,10000,stdin);
- printf("Dlugosc to %d \n", zwracam_dlugosc_tablicy(szInput));
- kopiuje_tablice(Tekstdokopii,skad);
- getch();
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment