Changeset fa3704 in git


Ignore:
Timestamp:
Sep 10, 2014, 1:04:50 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
4f51f2079a93daf4647cd134d5b608fd40f62d5a
Parents:
a8203aefe844ecfbfeb79cb449141a4d56f0f71f
Message:
add: omalloc0 to xalloc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xalloc/omalloc.h

    ra8203ae rfa3704  
    7171static inline void * omAlloc0(size_t s)
    7272{ void *d=omAlloc(s);memset(d,0,s); return d; }
     73static inline void * omalloc0(size_t s)
     74{ if (s!=0) { void *d=omAlloc(s);memset(d,0,s); return d;} else return NULL; }
    7375
    7476static inline void *omRealloc(void *d, size_t ns)
Note: See TracChangeset for help on using the changeset viewer.