Commit a3ac0335 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed some typos.

parent b6788184
......@@ -6,14 +6,16 @@
*/
#include <stdio.h>
#include <stddef.h>
#include "smalloc.h"
#include "log.h"
#include "exp.h"
#include "string-malloc.h"
static int no_of_allocated_blocks = 0;
EXPORT void *
string-malloc(size_t size)
string_malloc(size_t size)
{
++no_of_allocated_blocks;
return smalloc (size);
......@@ -21,18 +23,18 @@ string-malloc(size_t size)
EXPORT void
string-free(void * ptr)
string_free(void * ptr)
{
--no_of_allocated_blocks;
sfree(ptr);
}
EXPORT void *
string-realloc (void * ptr,
string_realloc (void * ptr,
size_t size)
{
if ( ptr == NULL )
return string-alloc (size);
return string_malloc (size);
return srealloc (ptr, size);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment