You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

332 B

strlen

Instructions

Write a function that returns the length of a string.

  • len is forbidden

Expected function and structure

func Strlen(str string) int {

}

And its output :

student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
4
student@ubuntu:~/piscine/test$