aboutsummaryrefslogtreecommitdiff
path: root/src/stringrep.h
blob: eaa4a12acb4b4d9016421038706c50fbeb5df9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef STRING_REP_H
#define STRING_REP_H

#include <stdint.h>

/**
 * Calculates the length of a string.
 */
int32_t stringlen( const char *s );

/**
 * Identicle to strdup, which isn't available everywhere, but uses c++ memory
 * facilities.  Remember to use delete[] when freeing the returned string.
 */
char *stringdup( const char *s );

#endif