mastodon.cardina1.red は、数々の独立したMastodonサーバーのうちのひとつです。サーバーに登録してFediverseのコミュニティに加わってみませんか。

サーバーの情報

3
人のアクティブユーザー

らりお・ザ・何らかの🈗然㊌ソムリエ

int strcmp(const char *s, const char *t) {
while(*s && *s++ == *t++);
return *t - *s;
}

まあこれは罠なんですが

何が罠かというと、 *t - *s は整数オーバーフロー起こすかもしれない的な話です

ちゃんと
return (*s > *t ? 1 : *s < *t : -1 : 0);
と書かなければ