Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 293 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 293 Bytes

ntp

Library for querying NTP servers.

Usage

#include "ntp.h"

struct ntp_packet packet;

// Use default server and port
ntp_query(&packet, NULL, NULL);

// Use specified server and port
ntp_query(&packet, "pool.ntp.org", "123");

Example

See main.c for an example.