Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- #include <string.h>
- char * kopiuj (char * cel, char *napis);
- int main (int argc, char * argv[]) {
- char tab[100];
- char * wsk;
- for (int i =0; i< argc; i++) {
- printf ("Parametr nr %d: %s", i, argv[i]);
- printf("\n");
- }
- if (argc>1){
- wsk=kopiuj(tab, argv[1] );
- printf("%s \n %s", tab, wsk);
- }
- return 0;
- }
- char * kopiuj (char * cel, char *napis) {
- strcpy (cel, napis);
- return strchr(napis, 'n');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement