Skip to content
Snippets Groups Projects
Commit a3ac0335 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed some typos.

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