comment-search-forward is a compiled Lisp function in `newcomment.el'.

(comment-search-forward LIMIT &optional NOERROR)

Find a comment start between point and LIMIT.
Moves point to inside the comment and returns the position of the
comment-starter. If no comment is found, moves point to LIMIT
and raises an error or returns nil if NOERROR is non-nil.

Ensure that `comment-normalize-vars' has been called before you use this.