Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int mystrlen (char s[]);
  4. int main()
  5. {
  6. char s[10] = "francisco";
  7. mystrlen(s);
  8. printf("%d", mystrlen(s));
  9. return 0;
  10. }
  11. int mystrlen( char s[]){
  12. int i;
  13. for (i=0; s[i] != ‘’; i++) ;
  14. return (i);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement