Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define tam 10
- size_t str_len(const char*);
- void main ()
- {
- int len;
- char hache[]="Hola como va";
- len=str_len(hache);
- printf("%d",len);
- }
- size_t str_len(const char* s1)
- {
- int c=0;
- while(*s1)
- {
- c++;
- s1++;
- }
- return(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement