75ac3edf1d
The code searches for the first occurence of @, : or !. Upon failure, it returns the index of \0. This is exactly what strcspn() does.