fork download
  1. #include <stdio.h>
  2.  
  3. int strlen(char * p)
  4. {
  5. int i = 0;
  6.  
  7. while (*(p + i) != '\0')
  8. i++;
  9.  
  10. return i;
  11. }
  12.  
  13. int main(void) {
  14. printf("%d\n", strlen("abcdef"));
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
6