document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. void sep(char*s, char* c){
  5. int i;
  6. for(i=0; s[i]!='\\0';++i){ /*NIE LUBIE bialych znakow ;|*/
  7. if(i>=1)
  8. printf("%s%c",c,s[i]);
  9. else
  10. printf("%c",s[i]);
  11. }
  12. }
  13.  
  14. int main(){
  15. char s[100];/*trzyma wyrazy*/
  16. char c[100];/*trzyma znaki podzialu*/
  17. printf("wpisz cos!\\n");
  18. gets(s);
  19. printf("podaj separator: \\n");
  20. gets(c);
  21. sep(s,c);
  22. printf("\\n\\n");
  23.  
  24. }
');