errno in linux

#include <errno.h>

if(clock_gettime(CLOCK_MONOTONIC_RAW, tp)!=0)
printf(“errno=%d: %s\n”, errno, strerror(errno));

(not so good example)