diff lib/lib.h @ 1399:a0c328bc2c14 draft

Little endian and big endian versions of peek (for host.c).
author Rob Landley <rob@landley.net>
date Mon, 21 Jul 2014 19:56:53 -0500
parents e65f9a9ba62d
children ffc7f606ce5b
line wrap: on
line diff
--- a/lib/lib.h	Mon Jul 21 19:55:06 2014 -0500
+++ b/lib/lib.h	Mon Jul 21 19:56:53 2014 -0500
@@ -138,7 +138,9 @@
 struct string_list **splitpath(char *path, struct string_list **list);
 char *readfile(char *name, char *buf, off_t len);
 void msleep(long miliseconds);
-int64_t peek(void *ptr, int size);
+int64_t peek_le(void *ptr, unsigned size);
+int64_t peek_be(void *ptr, unsigned size);
+int64_t peek(void *ptr, unsigned size);
 void poke(void *ptr, uint64_t val, int size);
 struct string_list *find_in_path(char *path, char *filename);
 long atolx(char *c);