trojanxem

Untitled

Jan 4th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #include <conio.h>
  5. #include <time.h>
  6.  
  7.  
  8. int zwracam_dlugosc_tablicy(char *szInput)
  9. {
  10.     return((int)strlen(szInput));
  11. }
  12. void kopiuje_tablice( char *Tekstdokopii, char *skad)
  13. {
  14.     strcpy(Tekstdokopii, skad);
  15.  
  16. }
  17. int main()
  18. {
  19.      char szInput[10000];
  20.      const char Tekstdokopii = "Kopiuje wiadomosci";
  21.      char skad[10000];
  22.      fgets(szInput,10000,stdin);
  23.      printf("Dlugosc to %d \n", zwracam_dlugosc_tablicy(szInput));
  24.      kopiuje_tablice(Tekstdokopii,skad);
  25.      getch();
  26.      return EXIT_SUCCESS;
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment