A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update
[simgrid.git]
/
README.coding
diff --git
a/README.coding
b/README.coding
index
dd18e22
..
bcb4240
100644
(file)
--- a/
README.coding
+++ b/
README.coding
@@
-6,7
+6,13
@@
MALLOC:
It's even better to use gras_new when possible.
SIZE_T
It's even better to use gras_new when possible.
SIZE_T
+ If possible, avoid size_t and use unsigned long instead.
+
#include <sys/types.h> in all files manipulating size_t
do cast it to unsigned long before printing (and use %lu)
#include <sys/types.h> in all files manipulating size_t
do cast it to unsigned long before printing (and use %lu)
+
+
+PRINTF pointer difference
+ printf ("diff = %ld\n", (long) (pointer2 - pointer1));