fork download
  1. #include <stdio.h>
  2.  
  3. int teilString(char *hauptStr, char *teilStr) {
  4.  
  5.  
  6. return -1;
  7. }
  8.  
  9. int main(void) {
  10. // your code goes here
  11.  
  12. char *hauptStr = "Hallo";
  13. char *teilStr1 = "al";
  14. char *teilStr2 = "al";
  15. char *teilStr3 = "l";
  16.  
  17. printf("\n%d", teilString(hauptStr, teilStr1));
  18. printf("\n%d", teilString(hauptStr, teilStr2));
  19. printf("\n%d", teilString(hauptStr, teilStr3));
  20.  
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
-1
-1
-1