lib.h 563 Bytes
Newer Older
1
/*
2
 * Alessandro Rubini and Aurelio Colosimo for CERN, 2011 -- public domain
3
 */
4 5
#ifndef __PTP_LIB_H__
#define __PTP_LIB_H__
6
#include <stdint.h>
7 8 9 10 11

/* We base on puts and a few more functions: each arch must have it */
extern void pp_puts(const char *s);
extern int pp_strnlen(const char *s, int maxlen);
extern void *pp_memcpy(void *d, const void *s, int count);
12
extern int pp_memcmp(const void *s1, const void *s2, int count);
13
extern void *pp_memset(void *s, int c, int count);
14

15 16
extern uint32_t __div64_32(uint64_t *n, uint32_t base);

17
#endif /* __PTP_DEP_H__ */