/[guile]/guile/guile-core/libguile/gc-malloc.c
ViewVC logotype

Diff of /guile/guile-core/libguile/gc-malloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by hanwen, Sun Aug 4 23:33:28 2002 UTC revision 1.4 by hanwen, Mon Aug 5 23:04:43 2002 UTC
# Line 142  scm_malloc (size_t sz) Line 142  scm_malloc (size_t sz)
142  {  {
143    return scm_realloc (NULL, sz);    return scm_realloc (NULL, sz);
144  }  }
145                
146    /*
147      Hmm. Should we use the C convention for arguments (i.e. N_ELTS,
148      SIZEOF_ELT)? --hwn
149     */
150    void *
151    scm_calloc (size_t sz)
152    {
153      void * ptr = scm_realloc (NULL, sz);
154      memset (ptr, 0x0, sz);
155      return ptr;
156    }
157    
158    
159  char *  char *
160  scm_strndup (const char *str, size_t n)  scm_strndup (const char *str, size_t n)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26