/*- * Copyright (c) 2024 Kyle Evans * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include int main(void) { int nb; assert(ioctl(STDIN_FILENO, FIONREAD, &nb) == 0); printf("%d", nb); return (0); }