Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
update
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Sep 2004 12:15:59 +0000 (12:15 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Sep 2004 12:15:59 +0000 (12:15 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@424 48e7efb5-ca39-0410-a469-dd3cf9ba447f

README.coding

index dd18e22..bcb4240 100644 (file)
@@ -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));