clightning-dumpkeys

dump clightning output descriptors
git clone git://jb55.com/clightning-dumpkeys
Log | Files | Refs | README | LICENSE

compiler.c (174B)


      1 
      2 #include <stdlib.h>
      3 #include "compiler.h"
      4 
      5 bool alignment_ok(const void *p, size_t n)
      6 {
      7 #if HAVE_UNALIGNED_ACCESS
      8 	return true;
      9 #else
     10 	return ((size_t)p % n == 0);
     11 #endif
     12 }