文字列の長さを比較するプログラムを作ろうとしています。でも、コンパイルエラーで動きません。

何が間違っているか分かりますか?
main.c
#include <stdio.h>
#include <stdlib.h>
long strlen(char *s);
int main(void) {
char textA[] = "Hello!";
char textB[] = "Hi!";
if (strlen(textA) > strlen(textB)) {
printf("%s is longer then %s\n", textA, textB);
}
return EXIT_SUCCESS;
}
期待される実行結果
Hello! is longer then Hi!

手前のほうで宣言している
strlen()
が、文字列の長さを数える関数ってことですよね。

そうね。

宣言があるから
main()
から呼び出せるはずだと思うんですけど……。

でもエラーになるのよ。

strlen()
は標準関数だったような……。