Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.354 kb
#ifndef REFCOUNTED_STR_H
#define REFCOUNTED_STR_H
// NOTE: this is not for performance critical code
struct refcounted_str {
int refcnt;
char *str;
};
struct refcounted_str *refcounted_str_dup(char *str);
void refcounted_str_get(struct refcounted_str **ptr, struct refcounted_str *src);
void refcounted_str_put(struct refcounted_str **ptr);
#endif
Jump to Line
Something went wrong with that request. Please try again.