File: hasutmpxaddrv6.c

package info (click to toggle)
tinyssh 20250501-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,388 kB
  • sloc: ansic: 20,245; sh: 1,582; python: 1,449; makefile: 913
file content (11 lines) | stat: -rw-r--r-- 195 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
/* Public domain. */
#include <time.h>
#include <sys/time.h>
#include <utmpx.h>

int main(void) {

    struct utmpx utx;
    int x[sizeof(utx.ut_addr_v6) < 16 ? -1 : 1] = {0};
    return x[0];
}